Is there a way to import GTK bookmarks into Dolphin?

Some one here created a solution:

for i in $(cat ~/.config/gtk-3.0/bookmarks); do
        printf '<bookmark href="%s"> <title>%s</title> </bookmark>' "$i" $(basename $(echo "$i" | sed -e 's/file\:\/\///g')) >> ~/.local/share/user-places.xbel

done

Run this in the terminal of your choice. (Then you'll have to edit the xbel file and make sure every bookmark tag is before </xbel> and remove incorrect nodes, since the script will create additional empty bookmarks if a bookmark had a custom name.)


restore compiz/unity as default window manager from xmonad

Have you looked at the content of ~/.dmrc?

It probably contains this:

[Desktop]
Session=xmonad

Mine currently shows this:

[Desktop]
Session=ubuntu

So simply change the second line to Session=ubuntu instead of Session=xmonad.

Here's a relevant question:  How do I change the default session for when using auto-logins?

Hopefully, that helps.


When you do a command and make the destination a register, you wont see any sort of visual indication that it did anything.  You could install something like screenkey to confirm that you are actually typing the keys you think you are.  Half the time, I stupidly press ' instead of " when trying to target registers... I just don't use them frequently enough.

Since the "+ register is the X clipboard, you could confirm that it copied by running a clipboard application.  For example, xclipboard (provided by the x11-apps package, sudo apt-get install x11-apps).

Try an experiment.  In a terminal, launch xclipboard, and send it to the background.  So: xclipboard &

Then in vim, type a sentence, and then hit escape to make sure you're no longer in insert mode, then type "+yy and see if the sentence pops up in the clipboard.

Then you can try "+p and confirm that it pastes it.  Or at least you should be able to see what was in the clipboard that should have been copied/pasted.

Sure, the :reg command will show you the x clipboard content, too, but having a separate clipboard app will let you see it as you're hitting keys.

Edit:
Apparently you can skip the screenkey usage and just do :set showcmd as @muru points out.


You shouldn't have a problem with it ... I run a server running 16.04 that is running on an old quad core AMD 2.8ghz processor .. it is running android-x86 and windows 10 in vm's and also run several servers and zoneminder with 3 cameras. Only suggestion is ... make sure you put in a decent amount of ram... android-x86 needs 2 gig by itself and it really doesn't like sharing :D I had 8G in mine and was running but it was not doing very well .. I bumped it to 16G and now it runs fine.. a bit slow but .. with all I have running ... it still seems to do the job.

The NUC has a 2.1 ghz dual core but I think it should still be able to handle the OS and running android-x86 without a problem. Its not going to be blazing fast but it should be able to get the job done.


Ubuntu One music app/subsonic and mp3 tag issues

Answering my own question...

Apparently the problem has been solved by restarting Ubuntu One on my PC in the system preferences, clearing the troublesome files from the Ubuntu One directory, and re-uploading them. I also restarted the Ubuntu Music app in android again. Everything seems to be in order and functioning fine now.


Setting the pixel size of super+left/right (split screen)

Like vanadium said:

  Certainly (unfortunatelly) not easily possible with Gnome out of the box, but likely scriptable involving tools such as wmctrl (and provided you use the X server - default in Ubuntu 18.04 and 18.10,, and not Wayland) –
  The Gnome extension gtile can get you a far way in achieving keyboard shortcut based tiling

I went with gtile it's perfect.


How to remove Firefox Alert sound without lowering the system sound

I see three options:

Delete (move) the actual alert sound file, or lower its volume

It's /usr/share/sounds/ubuntu/stereo/dialog-question.ogg

Mute all alerts from Sound Settings:

(for advanced users only): Add an AppArmor rule to Firefox's profile preventing it from accessing the /usr/share/sounds directory. (can add instructions if you need)


Use Caps Lock as arbitrary shortcut key in KDE5

Not the most optimal solution, but mapping caps lock to another key, such as 'F22', with xmodmap allows KDE's custom shortcuts to capture caps lock. Then disable the caps functionality:

Add to ~/.Xmodmap:

! May need the following line. On ubuntu this seems to cause an error.
! remove Lock = Caps_Lock
keycode 66 = F22
clear Lock

(Run xmodmap ~/.Xmodmap to parse immediately, rather than relog)

Not sure if both lock lines are needed, but I've spent long enough on this already.

Using setxkbmap works too, but doesn't have the convenience of .Xmodmap. I've tried throwing it in ~/.bash_profile, although this doesn't seem to work there. I suspect because KDE jumps in and re-enables caps lock after its run.

setxkbmap -option ctrl:nocaps
xmodmap -e "keycode 66 = F22"


How to find hidden keybinding to maximize windows in Ubuntu GNOME

Open dconf Editor and navigate to /org/gnome/desktop/wm/keybindings/. You'll find it there.


I found the solution from this answer.
https://stackoverflow.com/questions/7333582/why-text-is-cutting-from-bottom-in-uitextfield

Editing Digital-7's HHead Descent value by fontforge gave me solution.


Ubuntu 14.04 LTS Supports Facebook messenger ??... How to install facebook messenger app

I think Ubuntu’s web app integration has changed in 14.04. When you create a web app for a service like Gmail, Facebook, Ubuntu will now use the same browser used on Ubuntu Mobile. This theoretically makes web apps more consistent between the desktop and mobile versions of Ubuntu, but it’s a problem if you actually want to use these apps. This browser doesn’t work anywhere near as well and doesn’t even have access to the Flash plug-in.

If you want launcher icons for your favorite web apps, you should probably skip Ubuntu’s native integration features. Instead, install the Chromium or Chrome web browsers and use the Tools > Create application shortcuts menu option to create launcher icons and separate windows for your preferred web apps.

If you want to uninstall it--

Go to the Software Center and search for the specific web app and uninstall it. E.g.
unity-webapps-gmail or unity-webapps-googledocs

After uninstall you can add it manually using

Open a terminal window.
Type in the following commands then hit Enter after each.

sudo add-apt-repository ppa:noobslab/apps-dependencies
sudo add-apt-repository ppa:folke-schwinning/personal
sudo apt-get update
sudo apt-get install desktop-facebook
sudo add-apt-repository -r ppa:noobslab/apps-dependencies

I think this will work better...

Thanks


Do you use symbols or special letters in your password? I once had a problem with the same symptoms you described. In my case, I set Ubuntu's keyboard layout during the installation to the correct setting (German for me) and entered my password into the installation wizard with the correct German layout.
After the initial reboot I wanted to login again and Ubuntu refused to accept the password.

I tried to open the on-screen keyboard (from the accessibility menu - that is the stick-man symbol in your panel on top of your screen) and saw that a completely different keyboard layout was set, so of course I was unable to enter the correct password, as the labels on my keyboard did not match the characters they were interpreted as.

To log in, you can just use this on-screen keyboard and enter the password by clicking.

Another possibility would be to reinstall it again (or at least remember this for the next installation!) and just use a password like "123456789". Numbers only is the best, because they should be placed on the same buttons in every keyboard layout.

Of course you will not have to use the simple password from now on or type it always on-screen. Once you managed to login, you must go to the System Settings and correctly chose your keyboard layout. This time the setting will stay persistent and you should be able to log in in future without any problems.


In my case original nvidia drivers was the cause and switching back to open source nouveau helped. First, I removed all stuff from nvidia:

sudo apt-get remove --purge 'nvidia-*'
sudo apt-get install ubuntu-desktop
sudo rm /etc/X11/xorg.conf
echo 'nouveau' | sudo tee -a /etc/modules

(source: How can I uninstall a nvidia driver completely ?)

After that I could login, but unity didn't load, there was no launcher etc. It turn out I had to re-enable Unity plugin:

sudo apt-get install compizconfig-settings-manager
DISPLAY=:0 ccsm
Find the Unity plugin and enable it.

(source: Unity doesn't load, no Launcher, no Dash appears)


You need to change the boot order and move the priority of booting from dvd to first. I think you can do it in BIOS.


It seems like your environments.yaml file can't be read because it doesn't comply with the YAML syntax. It's easy enough to mangle it if you have been editing it.

you could try http://yamllint.com/ to see where it has gone wrong, or just generate a new one. The maas section should look something like:

   maas:
      type: maas
      # Change this to where your MAAS server lives.  It must specify the base path.
      maas-server: 'http://192.168.1.1/MAAS/'
      maas-oauth: '<add your OAuth credentials from MAAS here>'
      # default-series: precise
      authorized-keys-path: ~/.ssh/authorized_keys # or any file you want.
      # Or:
      # authorized-keys: ssh-rsa keymaterialhere


how do I make my Dualshock 3 gamepad work in Ubuntu 14.04?

There is a know bug in the kernel: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1326725

It is supposedly fixed in the 3.14 Linux kernel and newer, but I upgraded and it still didn't fix the problem. You could try to downgrade to an earlier version as described  here: Emulating Xbox 360 controller using xboxdrv not working for Dualshock controller on 14.04


Pluscom MAC address shows up but "wireless unavailable"

An interface should always have a MAC address associated with it.  If it says "wireless unavailable" I would expect that you are not seeing or associating with an access point or wireless switch/router.

Does your wireless work from a different OS, a different device, or from your system running from a LiveCD/DVD?

For general troubleshooting, see this help.ubuntu.com page.

See Broadcom 4312 wireless issues and https://askubuntu.com/questions/57554/how-can-i-troubleshoot-my-installation-of-the-latest-broadcom-driver

Also try resetting power (via this answer ) :

  Remove all power sources(cables/batteries).
    Act like you're powering on the device (press and hold the power button or power cycle several times even though it has no power).
      Reconnect all power sources and boot.

  The goal of that set is to remove power from wherever the wireless
  card stores the hardware disabled state and defaults to 'enabled' on
  the next boot.

Based on the forum thread you mention, you might try this driver: http://packages.debian.org/sid/all/firmware-ralink/download .


Is there a software alternative in Ubuntu for iSpy in windows (multiple Web cam recording software[DVR] )?

I presume from what you are asking you are looking for Ubuntu video surveillance software.
Both Xeoma, zoneminder, and Shinobi can be used for this.

Shinobi can be found here https://moeiscool.github.io/Shinobi/

You can get Xeoma from the software centre but reading the comments the version available for free is trial not fully functional software. You will need to upgrade and pay for the full version which the software prompts you to do.

Zoneminder is another Linux video surveillance solution also available from the software centre. for a more up to date version you will need to compile from source http://www.zoneminder.com/downloads

ZoneMinder

website address http://www.zoneminder.com/

Feature List
 - Runs on any Linux distribution!

Supports video, USB and network cameras.
Support Pan/Tilt/Zoom cameras, extensible to add new control protocols.
Built on standard tools, C++, perl and PHP.
Uses high performance MySQL database.
High performance independent video capture and analysis daemons allowing high failure redundancy.
Multiple Zones (Regions Of Interest) can be defined per camera. Each can have a different sensitivity or be ignored altogether.
Large number of configuration options allowing maximum performance on any hardware.
User friendly web interface allowing full control of system or cameras as well as live views and event replays.
Supports live video in mpeg video, multi-part jpeg and stills formats.
Supports event replay in mpeg video, multi-part jpeg, stills formats, along with statistics detail.
User defined filters allowing selection of any number of events by combination of characteristics in any order.
Event notification by email or SMS including attached still images or video of specific events by filter.
Automatic uploading of matching events to external FTP storage for archiving and data security.
Includes bi-directional X.10 (home automation protocol) integration allowing X.10 signals to control when video is captured and for motion detection to trigger X.10 devices.
Highly partitioned design allow other hardware interfacing protocols to be added easily for support of alarm panels etc.
Multiple users and user access levels Multi-language support with many languages already included Full control script support allowing most tasks to be automated or added to other applications.
Support external triggering by 3rd party applications or equipment.
xHTML mobile/cellular phone access allowing access to common functions
iPhone interface available

Screenshots http://www.zoneminder.com/screenshots

Xeoma

http://felenasoft.com/en/

Licence costs on per camera basis up to 1024 cameras http://felenasoft.com/xeoma/en/buy/

Typical applications:

Object monitoring in non-working hours (office, store, warehouse)
Security surveillance (perimeter security monitoring, car, etc.)
Staff monitoring (industry workers, office employees, caregivers and home staff)
Monitoring of activity of children and office workers on computer, control over visited sites
Pet surveillance
Watching machinery in industries

Camera/sources processing:

Compatible with any webcams, cctv cams, including wireless cctv cameras
Supports IP-cameras (including H.264, JPEG/MJPEG, MPEG-4, PTZ and ONVIF, wireless cams, i.e. perfect both for wired and wireless cctv)
Works with world webcams
Screen captures from all monitors simultaneously

Professional surveillance made easy:

Free rebranding of Xeoma
Group settings of modules
Xeoma Cloud Service
Creating a surveillance network of Xeoma servers by using web server
Shared access rights (user permissions)
Multi-Server and Multi-Client connection architecture for video surveillance of any size
Password protection of settings
Fullscreen view
PTZ inversion

Remote access:

Remote view via mobile devices
Online view of all cameras with sound
Full remote access to settings, archive and cameras
Internet broadcasting
Remote access even with dynamic IP address

Motion detector:

S - etting up of zone(s) of any size and shape to monitor for motion

Visual motion detection: frame of preview box changes its color at motion detection and indicates time of the last detected movement
Setting up maximum object size to be ignored and sensitivity level of sensor
Pre-record option to store several seconds preceding motion detection
Post-record to continue recording after the event has finished
Record delay
Enhanced algorithm to avoid false alarms caused by pets or weather changes

Archive:

Adjustable maximum size of archive and compression rate of images stored to archive
Loop recording
Possibility to store archive onto different HDDs
Built-in media player with adjustable speed of playback
Export of a selected extract right from the viewer

Notifications and reactions:

Text message (SMS) sending
E-mail notifications (with attached JPEG images and MJPEG videos)
Event-triggered pop-up window
Sound alarm
Running a specified program that will receive the path to the current image
FTP server upload of images and videos with sound
Saving files to the specified path with cyclic recording

All high-demand features:

Hidden mode of work
H.264, MPEG-4, MP4 and MJPEG video formats
Marking (embedded time and date, or custom text stamp)
Scheduler, setting up when system's components are to start/end work
Adjustable volume of sound in preview mode
Duplicating of chains
Various view modes
Automatic slide show of real-time images
1-click-easy updates
New versions notifications

Xeoma advantages:

No installation needed
No admin rights required
Simple additional settings
Flexible control like in a children's construction set
Innovative intuitive graphical interface
Available in English, Spanish, Italian, Brazilian Portuguese, German, Dutch, Danish, Romanian, Turkish, Hungarian, Finnish, Polish, Ukrainian and Russian languages

Screenshots

http://felenasoft.com/xeoma/en/screenshots/


Frequent internet disconnection in Ubuntu 15.04

I tried almost all the possible answers saw in different sites, but none of them solved my issue. Finally, I went back to 14.04 and then network issue was resolved. However, with 14.04, I had issues with Docking Station usage. For that, I upgraded the kernel to 3.18 by following this link.


If datasets have the same password, yet you need to enter it multiple times, this should mean that said datasets use different encryption roots/key locations; the output of zfs get encryptionroot,keylocation <pool>/<dataset1> <pool>/<dataset2> [...] should confirm this. You can use zfs change-key (see man zfs-change-key) to unify this.
To have the password entered automatically at boot time, you could use Network-Bound Disk Encryption (NBDE). Ubuntu provides packages for both Clevis and Tang, but you'd need to provide your own auxiliary script (e.g., in /usr/share/initramfs-tools/scripts/local-premount/) in order to ensure that the required keys are loaded. (Of course, Clevis–a pluggable framework for automated decryption–can work without Tang as well.)


MacMini Ubuntu Desktop 14.04 Headless Boot, Not Accessible, Not Booting

I believe I have the answer.

The MacMini will not boot unless it detects a monitor attached. There is no way around this at the BIOS level since there is no BIOS.

The SOLUTION? Plug in a DVI(male)-VGA(female) converter where you short out a few VGA pins using 100ohm resistors.

Source: http://imaginaryrobots.wordpress.com/2013/07/10/headless-mac-mini-hardware-hack/

(source: nickoneill.name)


Here is a really, really hacky way (and only a high-level description) of doing this.

On the new laptop use xrandr to increase the size of the screen to cover both monitors. If each laptop is 1920x1080 you would run:

xrandr --fb 3840x1080

If one screen is bigger, pick the biggest dimensions or you'll cut some off.
Run a VNC server on your new laptop. xllvnc is nice and supports clipping (amongst other things). Clipping allows you to send just the portion of the screen you want to and in this case we want to send the stuff we can't see on the first screen:

x11vnc -clip 1920+1080+1920+0

Run a VNC client on the old laptop. Assuming you set the resolution correctly in step 2, just make it fullscreen and bam, you're done.

This is going to give you relatively awful performance (you can tweak this in the x11vnc command) and artefacts (from the jpeg compression) but it should just about work.

A better solution (in my mind) would be ripping the screen off the old laptop and buying a controller board for it and just plugging it into the external display port on the new laptop.

That or flog the old laptop and buy a monitor. They're not expensive.


Sharing partitions between Ubuntu and Kubuntu

I would not advice it. Ubuntu and KUbuntu are having different shared librerys and programs (ones that are enviroment-releted). Installing them separatly would be much better idea. You can always make an experiment but I can't tell it what result you will get.
When it comes to separating system on several partitions it commes very handy to have /home, / and swap separated (you may reinstall system and have all data and settings as they were before). Unless you know exacly what and why are you doing there is no sense in futhurer seperation.


Unable to install g++ on Ubuntu 14.04 (x64)

First, to install g++ and everything it needs to work, you should install build-essential package, not g++ alone.  I additionally recomend QtCreator as IDE.
Your problem with apt-get will likely be resolved by doing

sudo apt-get -f install


Can't install from Ubuntu Software Center in 13.04

Try this.  just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get clean
sudo apt-get upgrade && sudo apt-get update

If that doesn't help, try changing the download server as show in the image below.


After suspend task manager items disappear Ubuntu 18.04

Those icons are provided by the "Ubuntu appindicators" GNOME extension (gnome-shell-extension-appindicator). As per GNOME's design/security policy all the extensions get disabled at lockscreen/suspend and restart after the user logs back in. It seems in your case somehow the extension is not getting reloaded.

When you find the icons missing, restart GNOME shell by typing Alt+f2, then typing r and pressing Enter (note: this does not work in a Wayland session). This should bring back the icons.


I know 2 reasons to begin with. 1st one is the most likely one.

Kernel not loaded the usb storage module. lsmod will show if it is. If not ...

sudo modprobe usb_storage

to add it.
Also can happen when the power supply of the USB is faulty.

To investigate more you could do a ...

strace -o log fdisk -l

and post the results on pastebin (it might be a long log).


Can I somehow use win+1 (2, 3, 4, 5..) to start applications in GNOME Shell's left-hand launcher?

You can do it through a AutoKey (get it from ppa). It allows You to bind any script to a hot key. Here's and example of script which You can bind to a hot key. It starts a bash script, which open emacs, starts a server, and then opens some other files in it,

import subprocess
subprocess.Popen(["/home/boris/Its/scripts/bk-starts/bk-starts-emacs.bash"])

here's a script to bring LibreOffice window:

window.activate("LibreOffice")

and so on!


Error while loading shared libraries: libdb_cxx-4.8.so

you may want to try and locate it first

 find ~ / -name *libdb*

ldconfig  creates  the  necessary  links  and  cache to the most recent
 shared libraries found in the  directories  specified  on  the  command
       line, in the file /etc/ld.so.conf

 apt-cache search libdb

 apt-get install libdb5.3++-dev libdb++-dev libdb5.3-dev libdb-dev && ldconfig

LD_LIBRARY_PATH is the predefined environmental variable in Linux/Unix which sets the path which the linker should look in to while linking dynamic libraries/shared libraries.

 export LD_LIBRARY_PATH="/list/of/library/path"

The LD_PRELOAD allow an extra library not specified in the executable to be loaded:

 export LD_PRELOAD="/list/of/library/path"

ldd checks the (so) shared library files for any missing dependencies

 ldd  /usr/lib/x86_64-linux-gnu/libdb-5.3.so

if you're installing it with a package use:

 ./configure --prefix=/usr/local --enable-cxx


Downloading Dreamspark MS Windows on Ubuntu

For downloading the SDM File you can use the Python script: https://github.com/RadekSimkanic/Linux-SDM-Downloader.


rEFIt's primary purpose is as a boot manager -- it enables you to select which OS to run. As such, it has little or no utility on a Mac that runs nothing but Linux.

That said, your configuration is likely to have some sub-optimal aspects:

Chances are you've got a hybrid MBR setup. This is unnecessary in a Linux-only configuration, and since hybrid MBRs are flaky and trouble-prone, it's probably best to convert it to a straight-GPT or straight-MBR configuration. (Which works best depends on how you're booting -- use a straight-GPT setup for EFI booting and straight-MBR for BIOS booting.) You can use gdisk to either convert the hybrid MBR to a plain GPT setup or convert to a true MBR configuration.
Completely removing OS X means you won't be able to update your firmware, and adjusting boot loader options can be tricky. OTOH, note that if you keep OS X, you may need to keep that ugly hybrid MBR, depending on your model's capabilities.

If you convert to a plain MBR setup, rEFIt is likely to stop working. (I've never done this on a Mac, though, so I'm not 100% sure how it reacts. I have heard of people running with such configurations, though.) In such a setup, you can treat the Mac as being pretty much like a normal BIOS-based computer.

Converting to a straight-GPT setup means that the Apple's BIOS compatibility layer won't load, so you'll need to boot Linux in EFI mode. Chances are you don't now have an EFI boot loader for Linux installed, so you'll need to do some reconfiguration if you go this route. I've written a Web page on this topic, so consult it if you're interested. If you go this route, you'll probably want to replace rEFIt with rEFInd and a 3.3.0 or later kernel with EFI stub loader support, GRUB, or some other Linux EFI boot loader.

Edit/addition:

To see whether you've got a GPT, MBR, or hybrid MBR disk, install gdisk and then use it to view your partition table, as in:

$ sudo gdisk -l /dev/sda
Password:
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Of interest here are the MBR and GPT lines in the Partition table scan area. If you see MBR: protective and GPT: present (as in this example), it's a plain GPT disk. If it reads MBR: hybrid and GPT: present, you've got a hybrid MBR. If it reads MBR: MBR only and GPT: not present, then it's a conventional MBR disk.

Alternatively, you can view the disk with Linux's fdisk. If you see nothing but a single type-0xEE partition, it's a plain GPT disk. If you see such a partition and other partitions, it's a hybrid MBR disk. If you see one or more partitions but none of them are of type 0xEE, then it's a plain MBR disk.


Your alsamixer settings show that the Mic is muted.

Open a terminal and issue the command: alsamixer

Use the arrow keys to highlight "Mic" which will be red.

Tap the M key and use the up and down arrow keys to adjust. (I would start at the midway point and adjust until I got the results I wanted).


If you have Lubuntu you are already using LXDE. It is Lubuntu's default environment.


Error while connecting to the ftp server

It clearly says that the server does not allow TLS connection. In this case it does not matter if the clients wants TLS, because the server does not want it. Which means you have to change the configuration of the server.


DPKG error: cannot copy extracted data for ... unexpected end of file or stream

You have corrupted download.

Remove problematic archive and retry:

sudo rm /var/cache/apt/archives/libc6-dbg_2.26-6_i386.deb
sudo apt-get install -f


First, it appears that you have loaded the wrong driver. Let's remove it:

sudo apt-get purge bcmwl-kernel-source

Also, in the version of iwlwifi that is included in kernel version 3.19-xx, there is a great deal more in the file iwlwifi.conf. Apparently, it has been overwritten. Please do:

gksudo gedit /etc/modprobe.d/iwlwifi.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Amend the file to read:

# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs     /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
options iwlwifi 11n_disable=8

I doubt that you need the other options. Proofread carefully, save and close the text editor.

Next, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

I notice in your paste that there are at least four access points with the same name. I suspect that the dropping may be because your wireless card is roaming from among them. I suggest you ask Network Manager to bind to the strongest one as described here: Ubuntu connect drops. Worked for a while then started dropping again


How do I enable the backlit keyboard on an ASUS G53SX or G53SW?

Try function F4 to turn the brightness up on the keypad.


Why don't you use Cairo Dock?

To install, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:cairo-dock-team/ppa
sudo apt-get update
sudo apt-get install cairo-dock cairo-dock-plug-ins

To download and install click the image below.

Once you install it, logout or restart the system, and when it boots back up, choose Cairo dock as shown in the images below.

When the desktop comes up, you will notice the the side launcher is not there anymore.


Ubuntu 12.04 white stripes on second monitor

If enable dual head mode (two X screens), the second monitor went white after login with unity or unity-2d. After tracking the gnome-session, it is caused by running "nautilus -n" for this configuration. And if kill the nautilus process, the desktop showed up normally on second screen. It is a Bug. Try using Ubuntu 13.10.


How to fix the physical size of a display in xrandr?

This probably won't help much but here's an xorg.conf fix for nVidia proprietary drivers. Not sure if this would be related to xrandr, & you don't mention what GPU your using to connect to the TV.

https://askubuntu.com/a/491498/486441

Just came across this one also
Ubuntu 15.04 & ultrawide monitor. How to set max resolution? EDIT:Solved!
using xrandr but had to create a xorg.conf


What is a safe way to upgrade over multiple releases without losing installed programs?

Upgrade from CD

You can not upgrade from the desktop CD, but you can using the alternate CD.

See : https://help.ubuntu.com/community/MaverickUpgrades#Upgrading_Using_the_Alternate_CD.2BAC8-DVD

General advice

I think for the most part your question has been answered by Uri, but ...

Upgrading any OS is associated with some risk, upgrades can fail for any number of reasons.

In addition there are some substantial changes from 10.10 to 11.10, so there some risk the upgrade will cause problems.

What makes you think you should upgrade to 11.10 ? What features does 10.10 lack ? What features of 11.10 do you "need"?

Before you upgrade you should:

Read the release notes. https://help.ubuntu.com/community/UpgradeNotes .
Back up your data.
Test your hardware by running the desktop live CD.

Matlab

In addition, in your case, it sounds as if you need specific applications, Matlab is one. You need to do your homework to determine if it will run in Ubuntu 11.10

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

suggests this is unsupported. Upgrading to an unsupported version of Ubuntu sounds llike an unwise decision.

What other applications do you need to work in 11.10 ?

IT Dept

You mentioned you have an IT department. IMO you should be asking them for advice as it sounds as if you are expecting their support.

Consider the possibility that it may be easier to go with a fresh install.


I had the same problem. I was using a bluetooth dongle, and it worked fine (Ubuntu 15.10). Then it started giving me audio lags and sync problems.

It occurred to me that I had also begun to use a new usb drive in the port just next to the bluetooth dongle. When I moved the dongle to the other side of my laptop, the lag stopped.

I can't be certain if it was the USB drive that caused the interruptions, but changing the ports did the trick. I couldn't find any other solutions in my research.


WSL+Ubuntu 18.04: `ssh` or `apt update` gets “Temporary failure resolving ...” errors

Installing Win 10 1803 update solves all my issues including one I didn't mention: gradle wrapper script couldn't connect to daemon through 127.0.0.1 with "connection refused", even though I could see gradle daemon advertised its status to clients.


16.04 LTS and /dev/shm/ Files Disappearing

After hours of searching and reading, I found the culprit. It's a setting for systemd. The /etc/systemd/logind.conf contains default configuration options, with each of them commented out. The RemoveIPC option is set to yes by default. That option tells systemd to clean up interprocess communication (IPC) for "user accounts" who aren't logged in. This does not affect "system accounts"

In my case, the files and directories were being created for a user account, not a system account.

There are two possible solutions:

Create the files with/for a system user -- a user created with the system option (adduser -r or adduser --system)
Edit /etc/systemd/logind.conf, uncomment the line RemoveIPC=yes, change it to RemoveIPC=no, save, and reboot the system

In my case, I went with option #2 because the user was already created.

References:

RemoveIPC prematurely removes IPC segments
Change default value of RemoveIPC in logind.conf
PostgreSQL: Systemd
Oracle: 3.5 Database Installation and Operation Fails if RemoveIPC=yes Is Configured for systemd


Slow boot/login -- how do I figure out the cause?

One way is to use the bootchart package - this produces a .png image file showing what processes are being started and how long these processes run for.  It also describes disk-throughput which shows how efficient information is fetched from your disk.

To install -

sudo apt-get install bootchart pybootchartgui

Reboot and login.

Look in /var/log/bootchart for the image file.

for example - part of my bootchart looks like:

To uninstall -

sudo apt-get remove bootchart pybootchartgui

Possible causes of a slow boot

First check if you are running any unnecessary processes - for example bluetooth, modemmanager.  Also check what processes are running after login.

Its also worth re-caching your ureadahead cache files - these files are used to speed up your boot.  Remember, remove bootchart first, reboot, remove the *.pack files and reboot twice again before reinstalling bootchart.


I had the same issue just now on Ubuntu 20.10 (Budgie) with the exact same printer, after having it work fine on Manjaro, Mint, and Deepin. I was able to fix it by installing the cups-backend-bjnp package:
sudo apt install cups-backend-bjnp
Then, I did need to go to "Printers" in settings, and add a new printer; once that package is installed, it will auto-detect the printer again and match it with the drivers from that package, but Ubuntu won't match them retroactively to existing printer profiles.


Ubuntu 16.04 LTS on MacBook Pro 7.1 (Early 2011) Wifi Issue

in ubuntu terminal as root

rmmod b43 bss bcma

insmod wl.ko

wl.ko is of course your Broadcom driver compiled with dkms


I hate to answer my own question, and so quickly, but rather than delete it, I thought it best to leave it up for the next person who has this problem.

I am using Vizio HDTVs for my monitors.  Somehow the audio setting for SRS True Volume got changed to "YES".

Changing it to "NO" fixed the problem.

While it turns out that this is NOT a Ubuntu problem, I hope it can help those others who may not realize the problem is in their TV.

Thank you for understanding.

Buck


Which document scanners work with Ubuntu?

You can use almost any printer that has a USB interface... USB would be on the front, not the output to PC connections. Look for Scan to USB, or Scan to Thumbdrive. All versions of Ubuntu, I have used, will recognize the thumbdrive on the Networked or Installed Printer. So you would need to use the internal scan functions on the printer.  This capability is found often in Multi-Function all in one Printers. If you use grayscale, and PDF for the scan and save config, often times the ADF will run quicker then Neatdesk. The problem being that integrated ADFs tend to start scanning crooked early on, so repairs and tunes ups occur quite frequently.  "This is from personal experience" :D Hope you found this helpful.


Ubuntu on Intel Compute Stick doesn't load

Try the following steps:

Install Ubuntu 14.04 LTS on the 2GB Intel Compute Stick

Basically make sure you're using ISO which was respun using isorespin.sh (check GitHub mirror repo) as per these instructions, or download and use Ian Morrison’s ISO disk image. Flash OS image onto USB using dd, then try booting again.


Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo nano /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Look for

[Disable hibernate by default in upower]
[Disable hibernate by default in logind]

Change the value of "ResultActive=no" to "ResultActive=yes" in both, press ctrl+x to exit the file. It will ask to save the change or not. Press Y to save the change, if you're on Ubuntu restart your system.

Edit

Just tried this on Xubuntu 16.04, and Ubuntu 16.04. and it also works.

For Ubuntu 16.04 I had to reboot for it to work.


Taken from the updates in your question, you have disabled the trusty-updates repository

Open Software & Updates, open the tab Updates and activate the check box for Recommended updates

Now install the package again

sudo apt-get install g++


Install VM-Ware Tools on Linux

sudo apt-get -y install open-vm-tools-desktop fuse && reboot

This command mounts any files that are shared from the host into /mnt/hgfs

sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other


gnome-terminal tabs are very dark, difficult to tell which tab is in use

Since things have changed a bit in 11.10 and editing gtkrc (which worked in 11.04) may not be relevant, here's what I did to improve contrast between the active and inactive tabs in gedit:
I opened /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css and in the section titled with ".notebook tab", I replaced

background-image: -gtk-gradient (linear, left top, left bottom,
                                 from (shade (@bg_color, 0.97)),
                                 color-stop (0.80, shade (@bg_color, 0.95)),
                                 to (shade (@bg_color, 0.92)));

with

background-color: #222222

One will obviously use a suitable color in place of #222222. It's also possible to just tweak the values after "bg_color" and retain a gradient effect for what it's worth.

Please note that I'm using a laptop (Dell Inspiron 1545) and I don't know about how this will work on desktops or other devices.

On my kit, it also gives nice contrast in the terminal.

Edit: this workaround is valid for 12.04 for both gnome terminal and gedit.


sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-319 nvidia-settings-319

Then edit bumblebee.conf

 sudo nano /etc/bumblebee/bumblebee.conf

It should have this lines:

# You need to explicit the driver used by Bumblebee server.
Driver=nvidia

KernelDriver=nvidia-graphics-drivers-319
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-graphics-drivers-319:/usr/lib32/nvidia-graphics-drivers-319
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-graphics-drivers-319/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

  Restart the bumblebeed daemon using the following command:

 sudo service bumblebeed restart

Just install & tested its working fine

optirun glxspheres

Bumblebee-Project

WEBUPD8

optirun -vvv glxspheres
[ 1385.959123] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1385.959847] [INFO]Configured driver: nvidia
[ 1385.960226] [DEBUG]optirun version 3.2.1 starting...
[ 1385.960269] [DEBUG]Active configuration:
[ 1385.960281] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1385.960292] [DEBUG] X display: :8
[ 1385.960302] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-319:/usr/lib32/nvidia-319
[ 1385.960313] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1385.960323] [DEBUG] Accel/display bridge: auto
[ 1385.960333] [DEBUG] VGL Compression: proxy
[ 1385.960343] [DEBUG] VGLrun extra options:
[ 1385.960354] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 1385.960419] [DEBUG]Using auto-detected bridge virtualgl
[ 1388.086427] [INFO]Response: Yes. X is active.

[ 1388.086477] [INFO]Running application using virtualgl.
[ 1388.086729] [DEBUG]Process vglrun started, PID 3491.
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 525M/PCIe/SSE2
94.087784 frames/sec - 102.571552 Mpixels/sec
104.808515 frames/sec - 101.916638 Mpixels/sec
105.079375 frames/sec - 102.180025 Mpixels/sec
105.155037 frames/sec - 102.253599 Mpixels/sec
[ 1397.201911] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 1397.201986] [DEBUG]Socket closed.
[ 1397.202029] [DEBUG]Killing all remaining processes.


Huawei E1731 not getting detected in Ubuntu 13.04

Your card should be detected by default as reported , see - HUAWEI E173 on Ubuntu 12.04

First if you are trying the device in USB3.0 port, try switching to a USB2.0 port or vice verse and wait for 30-60 sec to check whether it detects the device(the device's lights should become stable ).

If not

Plugin your device, open terminal and execute lsusb
Identify the device, an example line could be

Bus 001 Device 003: ID 12d1:1d35 Huawei Technologies Co., Ltd.
Carefully take a note of numbers like ****:YYYY. The **** defines vendor Id and YYYY defines product id. In above example vendor ID is 12d1 & product ID is 1d35
Execute sudo modprobe usbserial vendor=0x**** product=0xYYYY (Replace with your vendor id and product id)
Now wait to see whether it detects and you see New Broadband Connection like below

If everything works, execute sudo gedit /etc/modules
Add the line usbserial vendor=0x**** product=0xYYYY (change vendor and product id as per your output), save and reboot.


Running ARM(EL) executables on ARM(HF) system - Missing Symlink to dynamic Loader?

The dynamic linker is baked in at compile time. to see which dynamic linker is being used run. readelf -l /usr/bin/foo | grep Request

The only way to change this is to adjust the gcc spec files. See gcc -dumpspecs | grep ld-linux. Or by passing the --dynamic-linker flag to the linker at build time with something like gcc -Wl,--dynamic-linker,/lib/ld-linux.so.3 foo.c

However none of that is needed if the toolchain is setup up right, and you really should not mess with it unless you really have a reason for it.

In short your solution is probably the best one, however I would try to find the armhf package and use that if you can, or rebuild the package.


Press simultaneously Ctrl+Alt+F1,
Login with your user name and password, and enter following command:

sudo mv .Xauthority .XauthorityBak

then

sudo reboot

After that try again.


Why can I apt-get install rapidsvn but not see it within the Ubuntu Software Center GUI?

Ubuntu Software Center is focused on end-user applications and indeed will not "find" many individual packages. There is a bug report on this

Obviously, this requires you to use the terminal to find and install specific packages. You also may use the powerful Synaptic Package Manager to be able to manage your installed software at the level of the individual installation packages.


So your partition table is corrupt. You overwrite it with:

dd if=/dev/zero of=/dev/<flashdrive> bs=512 count=1 conv=notrunc

as root; but be carefull to replace ‹flashdrive› above with the CORRECT drive, so you don't wipe your harddrive/SSD


How to install 100 server's less effort?

If you're looking for some degree of automation on bare metal installation, there's Orchestra. For cloud, specifically the Amazon EC2, you can use juju for completely automated deployment.

Orchestra's Launchpad page is quite lacking on information and details, as of writing this answer. This Ask Ubuntu answer will explain, in brief, how it works and links to appropriate documents to get started on using it.


Backup gets stuck at /proc/kcore ,what to do?

It seems that the comments above has the answer, which is using --exclude with double hyphen. I would like to note that copy pasting from the question results in ? marks in my console thus the dash stripes might be changed inadvertently (maybe by a word processing software) into EN dash unicode character. Changing the EN dash into two character ANSI dash does the trick.
But in my system running similar tar command stuck on  /var/lib/ntp/proc/kcore file, which were mounted by ntp. In such cases do check mounted proc locations and other non-filesystem mounts and then add exclude clauses accordingly :

rtremsapp01:~ # mount
/dev/mapper/vg_root-lv_root on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=1777,size=71g)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda1 on /boot type ext3 (rw,acl,user_xattr)
/dev/mapper/vg_root-lv_var on /var type ext3 (rw,acl,user_xattr)
/dev/mapper/vg_root-lv_master on /master type ext3 (rw,acl,user_xattr)
/dev/mapper/vg_root-lv_usrsap on /usr/sap/RP0 type ext3 (rw,acl,user_xattr)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
none on /var/lib/ntp/proc type proc (ro,nosuid,nodev)
rtremsapp01:~ # tar -cvpzf /backup/backuprtremsapp01.tgz --exclude=/proc --exclude /backup --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys / --exclude=/var/lib/ntp/proc  --exclude=/dev --exclude=/var/lib/nfs/rpc_pipefs

Having multiple filesystem mounts, it might be beneficial to backup each mount point separately using --one-file-system option though..

rtremsapp01:~ # tar --one-file-system -czf /backup/rtremsapp/var.tar.gz /var &
rtremsapp01:~ # tar --one-file-system -czf /backup/rtremsapp/root.tar.gz /  &
rtremsapp01:~ # tar --one-file-system -czf /backup/rtremsapp/master.tar.gz /master  &
rtremsapp01:~ # tar --one-file-system -czf /backup/rtremsapp/boot.tar.gz /boot  &
rtremsapp01:~ # tar --one-file-system -czf /backup/rtremsapp/usr_sap_RP0.tar.gz /usr/sap/RP0  &


There is a snap application called 'overlay' - you can install it via Snap Store. This little app makes it possible to remount a snap read/write. Then you can create a directory and copy files there. However, it needs to be repeated evry time the system starts up, so you have to write a script that is called on system startup, which remounts the Opera snap r/w using 'overlay', and then creates the appropriate directory and copies files.
(Actually you don't have to use the 'overlay' application, you can remount a snap r/w using just 'mount' command with overlayfs, but that application simplifies it).


Thanks for the hint with /etc/update-motd.d/, i've quashed most of these buggers there one by one. Problem is solved.

Hall of shame:

50-landscape-sysinfo -> 2,6sec loss
80-esm -> 0,5sec loss
95-hwe-eol -> 0,5sec loss


I found out a way to fix the problem. So what can be done is to try reducing the MTU size. From my ifconfig output, it can be seen that MTU is set to 1500. Gradually decrease it to 1492, 1450.. and see if it works.

The command is ifconfig eth0 mtu <MTU> up.

Where <MTU> is the value you want to set. For me everything started working at a MTU value of 1492.

Once you found value that works for you, make the settings permanent. Open /etc/network/interfaces, enter under the correct interface:

mtu <MTU>

where <MTU> is the determined MTU value.


Can't read file from my external hard disk on ubuntu

Install GParted and gpart.

sudo apt-get install gparted gpart

Run GParted (you will need to enter your password as it requires root privilige to run).

Select your external hard disk.

Select Device then Attempt Data Rescue

This will attempt to find any files on the disk and open a file browser, from which you can copy them to another hard disk.


You just need to run this command:

sudo apt-get install gnome-session-fallback

Log out and you can see the classic gnome on the menu:


You do not need the recovery menu to change the root password.

By default, no root password is set in Ubuntu, and you use sudo only to get root permissions. It you really want to set a root password, see

How to change root password in ubuntu?

and for background, see here:

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


Chromium does not start after update on 20.04

Had the same problem, fixed it by moving to the snap edge release.
sudo snap refresh --edge chromium

Still has that same snap warning but at least chromium starts!


How to set up dual monitor on PC without graphic card? Ubuntu 12.04

If you mean you're splitting the output of one VGA connector on your PC, you can't - this (fairly obviously) just duplicates the signal to different monitors.

If you have a VGA connector and an HDMI or DVI connector, then you may be able to use dual monitors, depending on the graphics chipset. I don't recall ever seeing a motherboard with onboard graphics that had two video outputs, though.


Browser is not displaying php output or Errors

Apart from the solution dan08 provided, may I know if you have write/execute privilege to the default /var/www directory? Try saving a sample file to that directory.

Run your script as http://localhost/[directory name]/[file name].php

Ok, you can do it now. Fine, if your browser shows well on http://localhost, then run http://localhost/phpmyadmin (i assume that you have phpmyadmin installed and configured properly for mysql- if not, consider installing it). Can you login and see the localhost interface of mysql?

If you can see nothing, restart apache.


How to disable suspend with command line or config file?

On Ubuntu 16.04 LTS, I successfully used the following to disable suspend:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

And this to re-enable it:

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target


Ubuntu 12.04 comes with a default display setting application(Displays). Please select the highest resolutions for both of your displays and keep mirror display unchecked, also select the monitor in which you want the unity launcher and apply.


First, /etc/resolvconf/resolv.conf.d/head can be edited by hand. The comment in the file which says DO NOT EDIT THIS FILE BY HAND does not apply to /etc/resolvconf/resolv.conf.d/head itself but to /etc/resolv.conf, to which the former is prepended.

Having said that, however, under normal circumstances you should not have to edit /etc/resolvconf/resolv.conf.d/head.

The files /etc/resolvconf/resolv.conf.d/head and /etc/resolvconf/resolv.conf.d/tail are provided as a way of forcing a head and tail onto the generated resolv.conf should that be needed under exceptional circumstances, but if you are using resolvconf properly and under normal circumstances then you do not have to do this.

You say that the file content is

nameserver 127.0.0.1
nameserver 10.255.0.101
nameserver 10.255.0.11

The presence of the line nameserver 127.0.0.1 suggests that you are running a local forwarding nameserver such as dnsmasq.  The file above is not what resolvconf normally generates under these circumstances.  It normally generates a file like the following.

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search foo.com

My guess is that on your system /etc/resolv.conf is not a symbolic link to ../run/resolvconf/resolv.conf but is a plain file which may or may not be generated by something other than resolvconf. If the file is completely static then simply edit it so that it looks the way you want it to look. If the file is generated by some tool other than resolvconf then figure out what tool is generating the file and configure that tool.

Alternatively, restore the symbolic link /etc/resolv.conf -> ../run/resolvconf/resolv.conf and configure resolvconf properly.

  How do I remove localhost nameserver from resolv.conf?

The following instructions apply only to the case where you are using resolvconf to manage /etc/resolv.conf, i.e., /etc/resolv.conf is a symbolic link to ../run/resolvconf/resolv.conf.

If the line nameserver 127.0.0.1 is in one of the files in /etc/resolvconf/resolv.conf.d/ then remove it from there.

Otherwise that line is coming from some locally running nameserver. Either de-install that nameserver or configure that nameserver not to register the address 127.0.0.1 with resolvconf. In particular, if you are running BIND 9 named locally, either remove it or set RESOLVCONF=no in /etc/default/bind9.

Ref: https://bugs.launchpad.net/debian/+source/bind9/+bug/933723


Make sure you enable the "show preview" option in the "window list" DockbarX preferences, and, as per the FAQ in the link you referenced, enable compiz-scale and in the Compiz settings manager enable KWin compatibility.

Not sure what the DBX author means with that "glib" stuff, but the procedure above did the trick for me.


I have problem with install juju controler on MAAS node

I had this same problem.

For some reason, the memory constraint (mem 3584) didn't want to be met.  I forced it lower, and to install on a particular machine, like this:

juju bootstrap MaasServer2 --to jujuTest.maas --bootstrap-constraints="mem=3G"


Try:

sudo apt install ntopng

This should install ntop and all required packages. To run ntopng open the terminal and type ntopng


How to disable wireless from command line

The command-line equivalent in ubuntu 16.04

nmcli radio wifi off

To re-enable, use

nmcli radio wifi on

To help

nmcli radio help
nmcli radio wifi help


14.04: How to use NVIDIA Graphics instead of Intel integrated graphics?

I realize this may just be linking you to another page of instructions, but this one worked perfectly for me and I keep it bookmarked as a fallback:

http://mylinuxexplore.blogspot.com/2014/03/solved-nvidia-cant-access-secondary-gpu.html?m=1

I am running on a Lenovo Y50 with an Intel i7 / Geforce GTX 860M and for whatever reason I can only get the nvidia-331-updates drivers to work as this link suggests. Literally any other nvidia driver will leave me with the same problem you are describing. It seems like its hit or miss with this Optimus technology. Hopefully we will get a good update for it in the near future.


Sounds like a bad GPU driver. If your ATI card isn't being used, the i3 integrated graphics + processor can't do much more than 20fps on low settings. Make sure to upgrade your ati drivers and everything should work amazingly. You can google how to, you should easily find it!

Also, having 12gb of ram, you sure could launch the game with more ram than by default. You can now change it directly in the game launcher in the profile editor using the "JVM Arguments". (Eg. "-Xmx2048m -Xms2048m" would make the game run with 2gb of ram)

Have fun, Minecraft works like a charm on Linux. I get about 200 more frames per second than I get on Windows.

EDIT (Easier to read than in the comments):

Make sure to delete any drivers first:

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

Then install Catalyst 13.1 running these commands:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install fglrx

That should work, good luck!


Is there any way to install and run Autodesk Civil3D (2010-2013) or Infrastructure Design Suite under Ubuntu 12.10?

Assuming that AutoDesk is part of AutoCAD and similar software suites, you may want look at the Wine AppDB Entry for AutoCAD stuff.  Anything labeled "garbage" basically means "Nope, not going to work!".  From what I can tell, the 2012 - 2013 stuff is all "Garbage" rating, and so is most of the stuff going back to at least 2009.  2008's the latest that has a "Silver" rating, which is okay for most things.


Auto-escape special characters (e.g. ` ~ etc.)

Maybe that you do not have the same layout on both computers ?

On computer A you can get the current layout with the command

  gkbd-keyboard-display -g 1

(the name of the layout will be in the window's title bar)
If that's not the same layout on computer B, you can run on computer B:

  sudo dpkg-reconfigure keyboard-configuration

and change the keyboard layout (on step 2/4) to the same as the one on computer A. Just hit enter on the other steps to keep current settings.

inspired of Change keyboard layout (English UK) on command line to English US
and Name of detect keyboard layout tool


No, you cannot point a Nautilus shortcut here.

What you have on your web page is Apache's automatic display of a directory listing because it can't reach or doesn't have an index page.  The listing you see is only able to be viewed in a web browser like a Chrome or Firefox, not a filesystem browser like Nautilus.

This is all handled by internal file listing of Apache checking the file system on the remote server and then presenting that information as a web page.  It is not a network drive or anything you can connect Nautilus to; it's simply Apache's listing of the directory and not something Nautilus can connect to.


Ethernet and wireless will not work: Ubuntu 10.04 32-bit on a Gateway notebook

Fresher kernels have more driver. So try a live cd/usb with Ubuntu 11.10.

Or if you have wired connection (that was not clear from your question) add the kernel ppa sudo apt-add-repository ppa:kernel-ppa/ppa && sudo apt-get update and install linux-image-generic-lts-backport-oneiric Reboot, and I think your wireless should work.


How can I associate MAFF file format with firefox

Simply right click a .maff file >select open with> Select Other Applications> Find and select firefox.

Unless you want to convert the file you cant do that, if you do want to convert it visit here: http://en.pdf24.org/maff-2-pdf.html  *I take no responsibility if this program is unsafe.

Hope this helps


an alternative to onboard:

sudo apt-get install florence


How can I reset the GNOME Shell theme for the main account from the guest account?

Log in as your normal user. Just chose a different session at the login screen. After that you should be able to make the changes you need using gnome-tweak-tool or by some other means.


Recommended vertical refresh and horizontal sync rates for xorg?

No, there is no such recommended value for sync rates. There is no way that Xorg know them dynamically only from monitor DDC data. Otherwise, you have to get a common frequency for monitors you have.

The fallback frequencies are: (man xorg.conf)

  HorizSync  horizsync-range

  gives the range(s) of horizontal sync frequencies supported by the monitor.  horizsync-range may  be  a  comma  separated  list of           either  discrete  values  or  ranges of values.  A range of values is two values separated by a dash.  By default the values are in units of kHz.  They may be specified in MHz or Hz if MHz or Hz is added to the end of the line.  The data given here is used by the Xorg  server to determine if video modes are within the specifications of the monitor.  This information should be available in the monitor's handbook.  If this entry is omitted, a default range of 28-33kHz is used.

  VertRefresh  vertrefresh-range

  gives the range(s) of vertical refresh frequencies supported by the monitor.  vertrefresh-range may be a comma  separated  list  of  either  discrete  values  or  ranges of values.  A range of values is two values separated by a dash.  By default the values are in units of Hz.  They may be specified in MHz or kHz if MHz or kHz is added to the end of the line.  The data given here  is  used  by the  Xorg server to determine if video modes are within the specifications of the monitor.  This information should be available in the monitor's handbook.  If this entry is omitted, a default range of 43-72Hz is used.

What seems a bad case for putting high frequency is when Xorg couldn't get DDC/EDID data correctly from a monitor that don't support those high resolutions. Then you have to go through recovery mode to fix it or run low graphic mode. If you have quite new hardware, I expect to be fine.


First install GParted Partition Editor form Ubuntu software center.

Then format the partition to make it unallocated and make a new partition.

You can use more help from this link

NOTE : You will need to boot from Live Media to re-size boot partition


Why do Ubuntu & Lubuntu 14.04 have different support periods?

Ubuntu Flavors such as Lubuntu are build by volunteers and as such supporting releases for users is dependent on the amount of volunteers available.

Being relatively new (2001), Lubuntu did not have an LTS release at all for 12.04. This time around Lubuntu feels like they can support their users for 3 years.

You're right that they use the same repositories, but support will depend on the package. So if you use say, Firefox, then you're probably good as that package is widely used and support is shared with plain Ubuntu.

As with all open projects one of the best ways to help is to volunteer!


You can do this with virtualbox if you set up the VM with no virtual HDD, and instead, give it the disk with the windows install as the virtual SATA 0 port.  It should boot just fine, maybe have to go through some driver installs, but it should all come out in the wash.

Why you would want to do this in a VM is beyond me, unless you have servers running in Ubuntu.  Why not just boot into Windows?

Also, make sure you allocate enough RAM for the VM.  You can always tone down Windows 7 to make it less resource intensive.  I have successfully gotten Windows 7 running on a 880MHz single core CPU with 192 Mb of RAM.  It runs at a decent speed for things like dedicated servers (e.g. Star Wars Battlefront or Star Wars Jedi Knight Jedi Academy)


How to serve .deb files compiled for amd64 without receiving errors that i386 .deb files are not available?

On amd64 systems, apt tries to get both amd64 packages and i386 packages. This is (at least partially) because i386 packages are installable on amd64, and some applications and libraries are i386 only (Skype comes to mind). Therefore, apt has to get the list of i386 packages as well. Therefore, you get that error.

As for something on the server side, one way is edit the configuration file to allow i386 as well, and run reprepro -Vb . export. This will create an empty i386 Release and Packages file.


non-working Realtek Wireless Card on Toshiba Satellite L75D-A7280

Here is the link or follow the link above (Chili555) Followed the directions it works good it says for a Toshiba C55 A5281 and Ubuntu 13.04, I have a Toshiba Satellite L75D-A7280, Ubuntu 12.04LTS all updates and 3.11.4 kernel,  Wireless not working on Toshiba Satellite C55-A5281


The hard drive was sata disk0, I move it to sata1 so I could put the SSD on as disk 0. Win7 boots off the hard drive as disk0 or 1. Win7 let me format an mount the SSD as sata drive0. I tried removing the hard drive, did not help. I tried moving the SSD to SATA drive1, now Ubunti is proceeding to install as expected, no blank screens, asking for keyboard etc.


If Kubuntu automatically created a wallet and it has no known password, it may automatically open during system login, and setting a password may then be possible.

If the wallet is closed, if you do not know the current password, it is not possible to "reset" it (this would be a security problem). It is only possible to remove the entire wallet and then kwallet should ask you to create a new password.

In order to delete the wallet, delete the file:

/home/<user name>/.kde/share/apps/kwallet/kdewallet.kwl

For newer versions, the file to delete is located here:

/home/<user name>/.local/share/kwalletd/kdewallet.kwl

If you do know the current password, or have it already open, then see Vaibhav Kaushal's answer below.


How to open the same file twice in gedit?

Run gedit from the commandline with the --new-window option:

gedit --new-window file

That will let you open a new gedit window on the same file. You'll get this warning which you can ignore:

  This file "/path/to/file" is already open in another window.
  Do you want to edit anyway? Edit AnywayDon't Edit


Ethernet connection is not showing in my ubuntu 14.04

By default eth0 doesn't start sometimes. Therefore try

sudo /etc/init.d/networking restart

Then ifconfig -a

Also check your /etc/network/interfaces file and verify the eth0 interface if exists.

Hope this helps. Let me know.


Installation interrupted by power off, now get GRUB command line and cannot boot

Use the BIOS boot menu to boot from the USB. To enter the BIOS boot menu, you have to press a key as the computer turns on. This varies by manufacurer, look at the screen when the computer turns on, it might say which key to press to enter boot menu. Otherwise, look up your computer and how to enter BIOS boot menu.

Once you enter the boot menu, select the USB drive and try the installation again.


Try example 10 from here:

wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL

–mirror : turn on options suitable
for mirroring.
-p : download all files that are necessary to properly display a given
HTML page.
--convert-links : after the
download, convert the links in
document for local viewing.
-P ./LOCAL-DIR : save all the files and directories to the specified
directory.


Why doesn't this command work as an alias?

When using this command as an alias, $0 is no more protected by the single quotes so is converted to your shell name. These commands demonstrate it:

$ alias F="echo '$0'"
$ F
bash

The shell name (presumably bash) happen to be an unset awk variable name, leading to the empty lines.

One way to protect $0 from shell expansion would be to use something like:

alias F="find -type f -size +1k -exec ls -gGsSh1 {} + | awk 'NR<=10 {print \$0}'"

However, as this $0 is useless, you can just remove it from the awk statement.

find -type f -size +10M -exec ls -gGsSh1 {} + | awk 'NR<=10 {print}'

You can go further and remove the whole block as printing the selected line is awk default behavior anyway:

find -type f -size +10M -exec ls -gGsSh1 {} + | awk 'NR<=10'

Alternatively, you can just keep using head and discard the error message:

find -type f -size +10M -exec ls -gGsSh1 {} + 2>&1 | head


Windows incorrect, Ubuntu truthful (Megabytes/Mebibytes)

From the results of running: man mount : The tmpfs mount options for sizing (size, nr_blocks, and nr_inodes) accept a suffix k, m or g for Ki, Mi, Gi (binary kilo, mega and giga) and can be changed on remount. Binary refers to the base-2 units, not base-10 units, e.g. 1 Ki = 1 KiB = 1,024 bytes.

This a more complete explanation of which file size units do which applications in Ubuntu use see this question: What file size units do applications on Ubuntu use? For more information about Ubuntu units policy see Ubuntu Units Policy wiki.


Is it possible to send keystrokes to an inactive window?

mzke a script that brings up a text box, then xdotool to activate the editor and paste the text, then reactivate your current window. set up ubuntu keyboard shortcut to run the script.

this one if for a yes/no.. modify for text input style

dialogue --man

has one for --inputbox which would be suitable for your application. you'll need to do that yourself.

sudo apt install dialog

dialog --title "texttoeditor" \
--backtitle "Suspend Confirmation " \
--yesno "Are you sure you want to suspend
\"/tmp/foo.txt\"?" 7 60
# Get exit status
# 0 means user hit [yes] button.
# 1 means user hit [no] button.
# 255 means user hit [Esc] key.
response=$?
case $response in
0) systemctl suspend -i ;;
1) echo "suspend cancelled.";;
255) echo "[ESC] key pressed.";;
esac
text=<however we get the result as text for that input
dialogue  for use below by xdotool
clear
exit

now you have the text entered, copy that to the clipboard
or store as a variable $text for the script

sudo apt install xdotool

we can get the active window and store it's id, activate temporarily the texteditor (gedit used here), paste the text in from the clipboard using the editors keystrokes (eg ctrl-v ) , then reactivate the active window again. aggh, that wont work as the current window is the dialogue, so you would need to put the following id1 line BEFORE the dialogue above is called.

store the current windows id
 id1= $(xdotool getwindowfocus)
 # xdotool needs an id from the editor's name

name="gedit"

id2=$(xdotool search --desktop 0 --class  "$name")

 xdotool windowactivate --sync $id2 key  --clearmodifiers  --delay 100

xdotool keydown ctrl && xdotool key v

better alternative is

xdotool type --window $id2 $text

more info on xdotool here
https://www.linux.org/threads/xdotool-keyboard.10528/
   xdotool windowactivate --sync $id1 key  --clearmodifiers  --delay 100

some work there for you, I have not tested all of those.


Instead of specifying --geometry parameter, try specifying it with -g parameter. If it still doesn't work, I would consider this a bug.

An alternative to using the nautilus' native --geometry parameter, would be to use wmctrl , which can be used to control any other type of graphical window. This app doesn't come by default, so  you have to download it with sudo apt-get install wmctrl.

The command to position and scale the window would be wmctrl -r WINDOW_TITLE -e 0,XOFFSET,YOFFSET,WIDTH,HEIGHT. I've used this method on another question, to position two terminal windows with specific size and location (refer here)

Another , slightly better way , is to find out window id (a hex number) with xprop or wmctrl itself, and use that with -i -r parameters. Title of the Nautilus window changes as file folder changes, so this would be slightly more reliable.

Let me know if you'd like me to elaborate more on this.


This should work to print the last field:

paste table1.txt <(awk '{print $NF}' table2.txt) > table.txt

Or, if you know the last field will always be the 4th:

paste file1 <(cut -f4 file2) <(cut -f4 file3)

That will print the last field of table2.txt and pass that as input to paste. You can add as many files as you need:

paste file1 <(cut -f4 file2) <(cut -f4 file3) <(cut -f4 file4)  <(cut -f4 fileN)


Logon failed, please check your name/password. Zarafa on Ubuntu Server 12.04

I assume your Zarafa is configured with the internal database plugin and not with LDAP.

You can try to change your test user with

sudo /usr/bin/zarafa-admin -c test -p password -e test@example.com -f "Zarafa Test"

or create a new one

sudo /usr/bin/zarafa-admin -c username -P -f "Full name" -e emailaddress

More info about installation process you can find on http://www.zarafa.com/wiki/index.php/Installation


Try the following utility:

sudo ntfsfix /dev/sdb1

from the man page:

  ntfsfix repairs some fundamental NTFS inconsistencies, resets the NTFS
  journal file and schedules an NTFS consistency check for the first
  boot into Windows


As you have placed a brand new hard disk in an UEFI system, you first need to restore the UEFI partition. Try them in the following order:

The original System restore DVD/CD/USB from your hardware's manufacturer
The Open Source rEFInd
Go back to BIOS: no more worries about Unified Extensible Firmware Interface (UEFI) problems.  This one is hardware-dependent and on some systems might need a BIOS-flash.


Troubleshooting audio for Acer Aspire E 17 (E5-771G-7868)

The problem is that the default soundcard is HDMI device, not main soundcard .
A way to change sound devices order at a low level (alsa) is to add this 2 lines at the end of /etc/modprobe.d/alsa-base.conf :

options snd-hda-intel index=0 model=auto vid=8086 pid=9c20
options snd-hda-intel index=1 model=auto vid=8086 pid=0a0c
then reboot.

(the "vid" and "pid" value is from your  lspci command)

You could find other way like using pavucontrol (pulseaudio volume control)  to change default output device for Pulseaudio: clic green buton near second device in "output device tab", not sure it will works for speaker-test .


1) You can try this:

gpg --keyserver keyserver.ubuntu.com --recv E084DAB9

and then:

 gpg --export --armor E084DAB9 | sudo apt-key add - && sudo apt-get update

2) If "1" doesn't work (you're not alone) then you can use this:

"Some people have reported difficulties using [the first approach]. The issue was usually related to a firewall blocking port 11371. An alternative approach is to search for the key at http://keyserver.ubuntu.com:11371/ and copy the key to a plain text file, say key.txt. Then, feed the key to apt-key with

sudo apt-key add key.txt

"

As explained here.

To make it easy for this specific case:

Searching for Michael Rutter lead us to:

Public Key Server -- Get ``0x51716619e084dab9 ''

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mQENBEy9tcUBCACnWQfqdrcz7tQL/iCeWDYSYPwXpPMUMLE721HfFH7d8ErunPKPIwq1v4Cr
NmMjcainofbu/BfuZESSK1hBAItOk/5VTkzCJlzkrHY9g5v+XlBMPDQC9u4AE/myw3p52+0N
XsnBz+a35mxJKMl+9v9ztvueA6EmLr2xaLf/nx4XwXUMSi1Lp8i8XpAOz/Xg1fspPMRhuDAG
YDnOh4uH1jADGoqYaPMty0yVEmzx74qvdIOvfgj16A/9LYXk67td6/JQ5LFCZmFsbahAsqi9
inNgBZmnfXO4m4lhzeqNjJAgaw7Fz2zqUmvpEheKKClgTQMWWNI9Rx1L8IKnJkuKnpzHABEB
AAG0I01pY2hhZWwgUnV0dGVyIDxtYXJ1dHRlckBnbWFpbC5jb20+iQE+BBMBAgAoBQJMvbXF
AhsjBQkJZgGABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBRcWYZ4ITauTy9B/4hmPQ7
CSqw5OS5t8U5y38BlqHflqFev3llX68sDtzYfxQuQVS3fxOBoGmFQ/LSfXQYhDG6BZa4nDuD
ZEgb81Mvj0DJDl4lmyMdBoIvXhvdEPDd/rrOG+1t2+S429W9NIObKaZCs9abv2fnIhrtyAWx
c/iNR5rJmNXozvJVGAgAeNhBSrvZqFaPJ//BklbJhfVgNwt4GgtFl1vaU7LMaMrOWA9Hyd8d
WAGuIhbYXOOFj1WZ/OhUlYXnsIe8XzaJ1y6LyVkCLhaJ+MVtGwTXrFXRhBLQlhCYBfO25i/P
GUWSvRhI8n/r+RMNOuy1HlFbexRYrtPXOLbiO8AlFuIsX9nRuQENBEy9tcUBCADYcCgQCCF1
WUSn7c/VXNvgmXzvv3lVX9WkV4QdpcJXitXglXdTZwVxGv3AxDuaLEwxW7rbqKRPzWNjj4xT
Hxt2YtUjE+mLV58AFaQQU3aldYG8JPr2eohMNZqp2BG2odczw5eaO5l5ETjC1nHUjDUm8us3
TV3AXOajAjguGvpG3DKnx/gmudrMBVSAEE64kefyBmSR683zkXhw+NgbTID9XW1OSqE+fLQf
0ZzQEojMdfYIeV8Q5sMAmU3J9AdlpyDrZaYRmiphgw8PZTMahhz/o6Bz7p6VqA4Ncmr225nn
tIsjUUz0iK6TsaOi9KrF23Rw+IDUJeYkdVbwGqavgJG1ABEBAAGJASUEGAECAA8FAky9tcUC
GwwFCQlmAYAACgkQUXFmGeCE2rlB9Qf+JKMUzM0KVdTFWocGP+v4xTJsnKjYfjPjOkFYAdxh
jkiIq7h7ws0s+UKqmzSG4vX5Qz46GZcB7x0hVrN0gqCcfpruPZOjXNkRwtsXbLfiurrZQ6dS
PsNIE9L4DZdSTggwC3i7jiDlK6TtIMXD55VoVvVAvmzt6/f7y4qsVxhZ/N3jMqq1vLUESw8e
Vq2ryZRU9OIUufb5JjGNJ1Zz0Zp8hV/IPLoIv1OIocWov27YLcr6EnXuvXvU/MSm97YifdG9
UYCE99nHTioSM0Q3cgpu5EppVNrc232gyG2vlHzhsstNBx55cUmAX2fEzxuRipLS0iq4L0zU
Gdgdjn4noGDzGA==
=BF1w
-----END PGP PUBLIC KEY BLOCK-----

I) Copy this to a txt file:

gedit ~/Michael.txt

II) Run this

sudo apt-key add ~/Michael.txt && rm ~/Michel.txt

Also EvilPhoenix has "got a script that you can install which can allow you to execute the functions described here in a much easier one-line command, its part of a Launchpad project [he] started, the PPA for it is located here.
 Its written in Bash, but that is more than enough of a requirement for it to qualify.
 Its compatible with all versions of Ubuntu Lucid and later."


Ubuntu 13.10 issues with AMD driver & Audio

Check this link for your graphics card drivers: Installation via the Ubuntu repositories

Go to Softwares & Updates > Additional Drivers and then go about intalling the listed drivers.


Settings or something on Nouveau driver?

I tried this on my laptop:

sudo apt-get install xbacklight

then

xbacklight -set 80

This set my brightness to 80%. You could find a good value then add the "xbacklight -set xx" code to your startup session commands? That would set a value on logon you liked.

Kind regards,
Pete


How can I show the msn user picture in Empathy?

In Empathy do the following:

Edit -> Personal Information

In Account Select the MSN account. After that click on the ICON to the right. Select the picture you want. Thats it.


How can I change the look of Totems buttons,(Play,pause,etc)

They are part of the icon theme, so if you switch icon themes, they should switch along with the theme.


You can remove the mongodb folder by just simply doing this:

sudo rm -r /var/lib/mongodb


It would help to post the following:

#ifconfig eth0

Validate that the Static IP Address is in fact assigned to your virtual machine.

It's quie possible that due to a typo or error the static IP address never binded properly to your Ubuntu Instance. You did mention that upon initial install DHCP was able to acquire an IP Address, so we know the network is working.

Just as a quick test try doing the following:

Example:

#sudo ifconfig eth0 down
#sudo ifconfig eth0 192.168.1.55 255.255.255.0 192.168.1.1
#sudo ifconfig eth0 up

  First set of octets is going to be your client IPADDRESS

  Second set is the netmask

  Third set is the gateway

That should temporarily set up eth0 with a static IP. Does that happen to work?

In the meantime please post the output of the following commands in a pastebin.ubuntu.com link

#ifconfig eth0

#cat /etc/default/interfaces

#dmesg


How to remove a default action in thunar?

As far as I understand.. you want to remove the "Delete" action in Thunar.
Keep in mind that those are "Default Actions" not "Custom Actions". They are in the Thunar's source code.
In order to remove the "Delete" default action you should download the source code, edit, and then recompile it.

NOTE: In my case I'm running Xubuntu 13.04 with Thunar 1.6.2

You can try the following:

1) Open a Terminal and install the necessary packages.

sudo apt-get install build-essential

2) Install build dependencies

sudo apt-get build-dep thunar

3) Create a folder to download the source code.

mkdir ~/Downloads/src
cd ~/Downloads/src

4) Download the source code.

apt-get source thunar

5) Edit the the file "thunar-standard-view.c"

mousepad thunar-1.6.2/thunar/thunar-standard-view.c

You should remove the line number "402" and save the changes.

  { "delete", GTK_STOCK_DELETE, N_ ("_Delete"), NULL, NULL, G_CALLBACK
  (thunar_standard_view_action_delete), },

Before:

After:

6) Go to the "thunar-1.6.2" folder to build the deb packages.

cd thunar-1.6.2/
dpkg-buildpackage -rfakeroot -uc -b

7) Now you can install the deb packages.

cd ..
sudo dpkg -i *deb

8) Finally you can logout and Login to see the changes.

9) Your thunar file manager should look like this: (without the "Delete" Action")

hope it helps.


How to delete a line from a file containing sh extension?

Better (but stiull unsafe) to remove the line using its contents than using a line number. If you want to delete a line whose contents are known:

sed -i /{contents}/d in.sh

Another solution is to use grep -v:

grep -v '{contents}' <in.sh >out.sh

In both cases {contents} is a regexp that matches the contents you want to remove, knowing that strings with only letters and numbers and a few select special characters are regular expressions for themselves, so:

sed -i /somefile/d in.sh
grep -v 'somefile' <in.sh >out.sh

will remove any line containing somefile from the input. But keep in mind that they could also match more things (for instance somefile2 would also be matched) unless you start using more complete regexps, for instance using ^{contents}$ to match lines that are exactly {contents}, excluding those that contain {contents} and additional things.


Mount encrypted volumes from command line?

Your volume is probably encrypted with LUKS, here's how to mount it:

You need:

sudo apt-get install cryptsetup

To decrypt the volume:

sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume

Now you can mount it as usual:

sudo mkdir /media/my_device
sudo mount /dev/mapper/my_encrypted_volume /media/my_device

To lock the container again, it needs to be unmounted first:

sudo umount /media/my_device
sudo cryptsetup luksClose my_encrypted_volume

To automatically put it in the /media location, use the udisks tool

sudo udisks --mount /dev/mapper/my_encrypted_volume


creating a customized stat file out of files a current directory

kerframil from bash IRC:

$  i=1; for f in *; do [[ -f $f ]] || continue; data=$(tr '\n' ',' < "$f"); printf '%s,%s,%s\n' "$((i++))" "$f" "${data%,}"; done > ../../in-your-file-correctly.txt

notes:

/join #bash


How to forward virtual host to other server?

I would suggest to forward and route trafic only on your router. I dont know any other way. Since you have only one official IP you either have to serve all http trafic on one server, or you use another port for the second server.


Prevent gedit from creating files with the '~' (tilde) suffix

Those are just backups of your original files that gedit creates before saving changes to your edited documents.

In gedit preferences you need to disable Create a backup copy of file before saving, and if you want to automatic save your edits automatically set a timer with the option enable Autosave files every X minutes.

That way the ~ will be gone and your last changes will be saved on the file every x minutes in case something goes bad or your computer crashes.

The changes made to the file will be saved to the file itself and not to a temporary file.

Please be aware that if you delete the contents of a file and auto save is enable there will be a chance that you end up with a saved empty file.

Always make sure that when you close on file while auto save is enabled that the contents of the file are correct, else undo them and save the file again.


GUI gone after setting drive to mount at boot

After hours of studying the boot process, I had to recreate the fstab file. First of all, I logged into the console as root and entered the command

mount -o rw,remount /

This temporarily restored the GUI allowing me to do further work. Then I opened a terminal, and ran

sudo nano /etc/fstab

and created this line:

/dev/sda1       /       ext4    defaults        1       1

In each case, replace the "/dev/sda1" with the drive and partition of the device Linux boots from, replace the "/" with whatever the mount point is, and finally replace the "ext4" with the filesystem type.


Steam not running on Ubuntu 13.04 32-bit

I had the same problem with Steam on ubuntu 12.04 64 bit.
I ended up doing a clean reinstall of ubuntu, since I was already considering it for a while.

What happens if you go on a terminal and type STEAM_RUNTIME=0 steam ? I read somewhere that this worked for some people.
If it tells you that libraries are missing, you might want to try typing sudo apt-get install ia32-libs and see how that goes.

If that doesn't work either, then you're in the same situation as me. For me, however, a clean install of ubuntu fixed it.


As @eyoung suggested, use sudo apt-get install python-setuptools, it should do the trick.


I think this is a problem because your user does not have media as primary group. Therefore your windows clients try to write the file as user.user instead of user.media. A simple way of fixing this issue is to chown all the files to nobody.media inside of /data/media you are sharing and forcing clients to write as nobody.media . Your smb.conf would look like this

[global]
    security = user
    guest account = nobody

[media]
    path = /data/media
    browsable = yes
    guest ok = yes
    guest only = yes
    read only = no
    create mask = 0765
    force user = nobody
    force group = media


How to install fwbuilder on Ubuntu 12.04?

ssh: connect to host 192.168.1.6 port 2222: Connection refused

The host you are trying to connect(192.168.1.6) either don't have SSH installed, it is stopped or is listening in a different port than 2222.

So first check if the machine with that IP has SSH installed. In Ubuntu SSH (to accept connections) is provided by openssh-server:

$ sudo apt-get install openssh-server

Then check it is running:

$ service ssh status
ssh start/running, process XXXXXX

If it is stopped:

$ sudo service ssh start

Also usually SSH listens on port 22 and not 2222 as your script is trying to use. So check if that script has some switch to define a different port.


Can I make a second startup USB by simply coping the contents of existing one?

First option
you'll have to use the dd command. try this : dd if=/dev/your_source of=/dev/your_destination replace your_source and your_destination with a meaningful device name, for example if your source usb device is /dev/sdc and your destination device is /dev/sdd then write dd if=/dev/sdc of=/dev/sdd

be careful with dd. use this command with proper caution. don't use it unless you properly identify the disks.

second option
format the drive in fat32 and copy all the files from one device to another and then use syslinux to make it bootable.
type syslinux -s /dev/your_destination_device_with_partition_number
this time you'll need to provide the partition number(the first one in most case)
if your device is /dev/sdc then the first partition is /dev/sdc1 so, run :
    syslinux -s /dev/sdc1


See this:

http://www.linfo.org/path_env_var.html

As Pilot6 and Serg wrote in comment, You have to expand your $PATH system variable and compile program in release mode. When you will have this done, you will call myProgram and your system should check if it exists ind $PATH directories; it will eventually run it if it exists, or show error "unknown command" if it doesn't.


How can I use vmbuilder to install the dev ubuntu release?

Turns out there's a tool that does this automatically called testdrive.
Testdrive is the right way to run the ubuntu dev release in kvm/qemu.

Command line instructions:

sudo apt-get install testdrive
testdrive

Then pick the right menu choice.

In my case I am on a headless server, so I get an error about SDL when testdrive starts KVM. I copy the KVM command and paste it and add -curses -vnc 127.0.0.1:0

Now I can VNC to my ubuntu dev VM.


I would suggest to remove any configuration you have done and start over. Below procedure will do that. You will not lose any personal files but you will lose any configuration you've done. (even the keyboard layout if any)

Open a terminal (CTRL+ALT+T) and issue the following commands

gconftool --shutdown
sudo killall -r -I gconf
sudo killall -r -I dconf
rm -rf .compiz* .gconf* .config/dconf/ .config/compiz*

Reboot your PC.

Use a tool like Unity Tweak Tool and try to set the transparency of the Launcher. Do not use ccsm as it can destroy your desktop environment (little bit risky).


Many of the features on that table are extremely new. The Media Source Extension spec, for example, is still a draft and is still being written. And it's being driven by Google and Netflix. It's going to take time for the spec to mature to a point where Mozilla want to spend any time implementing it.

h.264 support is somewhat easier (if you're on 12.04 - it's currently muddier if you're on 14.04):

sudo apt-get install ubuntu-restricted-extras

Update: In Firefox 30 (should be the default in all supported versions now), the feature is there but it's disabled by default. This should change in Firefox 31 but you can enable MSE by going to about:config (stick that in the address bar) and searching for mediasource. That should leave you with the media.mediasource.enabled option. Double click to enable.

On the Youtube panel the MSE & H.264 option is still crossed out... But the other two MSE options are now green.


after installing ubuntu windows is not showing in grub

You could try boot repair:

make a Boot-Repair-Disk and run Boot-Repair

Alternatively, boot off your Ubuntu Install CD and run the following commands in a terminal:

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

then launch boot-repair


Opening large images in Firefox causes display corruption / glitches / visual artifacts

I've found virtually all errors of this type to be solveable by running MOZ_DISABLE_IMAGE_OPTIMIZE=1 firefox in a terminal, to test if it works.  If it does, I just add  MOZ_DISABLE_IMAGE_OPTIMIZE=1 to /etc/environment (you would then have to log out and log back in for this to take effect from your desktop environment I think, although from a newly opened terminal it'd work.)

This pretty much does what the name suggests –  it ONLY sends image data to the video card for actually on-screen images.  This has just the effect you'd expect – it avoids firefox's problems with >4096 and >8192 images with lots of cards, which in some cases is due to firefox ignoring the hardware limit, and in other cases driver bugs on cards that are supposed to support those larger images.  It also avoids firefox running out of video RAM and crashing on lower-video-RAM systems like the Atom with GMA500 I had recently (32MB of video RAM!).

The consequence is firefox burns a few % CPU decoding and sending images as you scroll, which otherwise would have been pre-loaded on the card.  This also works on remote X sessions, with the same effect... on a large image page, instead of a big chunk of network traffic on page load as firefox pre-sends all the images, you get traffic as the person scrolls.


This may be the same problem I'm having with Nvidia and Ubuntu kernel 3.13.0 (to check your kernel version issue "uname -r" in the terminal) How do I update to Ubuntu kernel 3.13.0 on 12.04 LTS without breaking the Nvidia graphics driver?

The only thing I could find on this was patching the kernel, details are on this Nvidia forum https://devtalk.nvidia.com/default/topic/644906/linux/331-20-on-3-13-rc1-kernel/ I don't think this is a perfect solution so go ahead with it at your own peril.

My solution was reverting back to a previous kernel, I'm not sure if this is possible on 14.04. Please be careful you don't want to remove a kernel without having a previous kernel installed although you may be able to install an older kernel with a new one installed so sudo apt-get install linux-image-3.5... The working kernel that I'm using is linux-image-3.5.0 (specifically linux-image-3.5.0-52-generic). You can check what previous kernels are installed by either;

typing the following and hitting TAB

apt-get remove linux-image-

Or issuing this command

dpkg --list | grep linux-image

But please note that I'm receiving a warning that security updates for the kernel and graphics drivers won't be available after August. I think we might have to wait until this is fixed by the Ubuntu team.


I used the Unity-2D Settings tool but got no window shadows. I tried then to find something in the gconf-edit tool that could be the cause.

In the /apps/metacity/general I noticed that the compositing-manager key was on, but the compositing-effects key was off.

Enabling it gave me the shadows!


I believe the displays used in xrandr are case-sensitive. I noticed you said vga-0 instead of VGA-0 so double check!


Triedalsamixer in terminal? Remove all of the M's by using the cursor keys to navigate below an output labeled as MM and tap M to unmute it. The cursor up and down keys can also be used to adjust the volume if necessary.

For more possible answer's, see here:
No Sound in Ubuntu 12.04


Could not load 'vboxdrv' after upgrade to Ubuntu 16.04 (and I want to keep secure boot)

Since kernel version 4.4.0-20, it was enforced that unsigned kernel modules will not be allowed to run with Secure Boot enabled. Because you want to keep Secure Boot, then the next logical step is to sign those modules.

So let's try it.

Create signing keys

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive common name/"

Option: for additional security, skip the -nodes switch, which will ask for a password. Then before moving on to the next step, make sure to export KBUILD_SIGN_PIN='yourpassword'
Sign the module (vboxdrv for this example, but repeat for other modules in ls $(dirname $(modinfo -n vboxdrv))/vbox*.ko) for full functionality)

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)

Confirm the module is signed

tail $(modinfo -n vboxdrv) | grep "Module signature appended"

Register the keys to Secure Boot

sudo mokutil --import MOK.der

which will ask for a password to use to confirm the import in the next step.
Reboot and follow instructions to Enroll MOK (Machine Owner Key). Here's a sample with pictures. The system will reboot one more time.
Confirm the key is enrolled

mokutil --test-key MOK.der

If VirtualBox still does not load, it may be because the module didn't load (sudo modprobe vboxdrv will fix that) or that the key is not signed. Simply repeat that step and everything should work fine.

Resources: Detailed website article for Fedora and Ubuntu implementation of module signing. @zwets for additional security. @shasha_trn for mentioning all the modules.

Additional resource: I created a bash script for my own use every time virtualbox-dkms upgrades and thus overwrites the signed modules. Check out my vboxsign originally on GitHub.


You can restart GNOME shell without a reboot by pressing Alt+F2, then typing r, and finally pressing Enter. This should reload the top-bar too.


squid TAG_NONE/503 0 CONNECT when high load

I had the same problem with a web page of a bank, the log is:

TAG_NONE / 503 0 CONNECT enlinea.bt.gob.ve:443 - HIER_NONE / - -

What I did was place:

pinger_enable off
half_closed_clients off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95

And change:

client_persistent_connections on
server_persistent_connections on

By:

client_persistent_connections off
server_persistent_connections off

It immediately began to work after changing those settings.


It is possible that your iPod is using a newer firmware than supported by ubuntu 10.10 out of the box.

The packages which are needed for using iPod, iPhone etc. are libimobiledevice1 libplist1 libgpod4 libusbmuxd1 usbmuxd gvfs and gvfs-backends. With the ppa ppa:pmcenery/ppa you are maybe able to solve this problem.

First of all: You have be clear about the fakt, that a ppa (personal package archive) is neither part of ubuntu nor a save repository. (It's like downloading a pice of software for windows from any website)

To install these packages from this ppa you should act like the following:

Open the software-center.
Go to "Software Sources…" under "Edit".
type in your user password.
Go to the Tab "Other Software" and "add" a new repository.
there you have to add "ppa:pmcenery/ppa"
update your System.

If after that your iPod still not works try the following command in a terminal:

sudo apt-get update && sudo apt-get install libimobiledevice1 libplist1 libgpod4 libusbmuxd1 usbmuxd gvfs gvfs-backends

good luck


Ubuntu 20.04 Custom Keyboard does not accept "Shift + Key" as new shortcut

As you observed, a Shift+key combination is not allowed. Why? I think it protects casual users from assigning unexpected keyboard combinations. Shift keyboard combinations are too commonly used and are an essential part of daily typing. How will you type "D"?
That said, you can still make it to work if you insist. Assign, for the time being, a hotkey that is supported, e.g. <Control><Shift>d. Then, delve into dconf-editor (not installed by default). Under /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/, find the folder ("custom") that corresponds with your shortcut key, and edit the value to read <Shift>d.


Ubuntu Minecraft Server Terminal Displaying Odd Characters

Those characters are terminal color codes. The log file doesn't filter those out, and Vim shows them explicitly instead of changing colors on you.


Can I make website links in the desktop look like the favicons?

Open the .desktop file for that link (e.g. Gmail.desktop) in the Desktop in a text editor and put /somepath/someimage.png after "Icon="


New to Linux. Updating graphics drier help.

If the Nvidia 319 driver caused issues, then don't install it again. Use the Nvidia 304 driver instead.

The recommended way to install it is either from the Additional Drivers application (12.04), or Software & Updates application under 'additional drivers' tab.

The easiest way to fix a broken driver is to uninstall it, but that will require knowledge of terminal commands at least. sudo apt-get remove nvidia* is the terminal command to uninstall Nvidia driver. If you can't get to a desktop, you have to boot to a root command prompt, mount your file system, then run that command. Press shift right when Ubuntu starts, then select root command prompt. Then run mount -o rw,remount /. Then run sudo apt-get remove nvidia*. Then restart the computer.


Installing a comprehensive LAPACK implementation under Ubuntu

I got the same result by using package manager. I did the following:

sudo apt-get install libblas-dev checkinstall
sudo apt-get install libblas-doc checkinstall
sudo apt-get install liblapacke-dev checkinstall
sudo apt-get install liblapack-doc checkinstall

The libraries went in /usr/lib and the includes in /usr/include.

Thanks to Markus-Hermann for the example code in the previous post. It helped me test it out real quick. Using the default install directories I used the following command:

g++ svd_demo.cpp -I"/usr/include" -L"/usr/lib" -llapacke -lblas


Context Menus in Nautilus (Ubuntu 18.04)

Confirmed, clicking between the files should work in 18.04.  Just make sure you right-click between the icons, not on the text below the icons.  I'll try to get a screenshot.

Unfortunately, the screenshot seems to miss the context menu for some reason: perhaps because I was just capturing the current window.  But where you see the pointer is where you need to right click to get the context menu.
Edit:
Alternatively, if you are in the list view and you have a right click key on your keyboard, you can simply hit that key on your keyboard directly after first opening the folder (no files yet selected).  If there is a file selected, Ctrl+Space will unselect it.