I want to change from 64 bit Ubuntu 12.10 to 32 bit

I've figured it out.

First I had to uninstall Ubuntu and restoring to Windows 7: http://www.youtube.com/watch?v=LSYGkSptSy4

Then after deleting the partion where Ubuntu was installed I inserted my Ubuntu 12.10 i386 disc and installed it on the same old partion.


My sound is distorted in Doom3. How can I fix it?

Try to run a game with the following commmand.

pasuspender ./doom3.x86

Or try these:

sudo apt-get install alsa-oss

quake3 +set s_driver oss +set s_numberOfSpeakers 2

aoss quake4


How to get rid of Pidgin/Purple's statuses Evil and Depression?

The status "evil" and "depression" are hardcoded in the source of pidgin. There seems to be no way to remove them other than patching the source and recompiling.

Check the source of the oscar protocol in pidgin 2.9.0 (oscar is the name of the ICQ protocol, 2.9.0 is the current official release). Search for "evil" or "depression". You will see that they are hardcoded statuses.


The following definitely work:

For Launcher using Win Key
Install ksuperkey:

sudo apt-get install git gcc make libx11-dev libxtst-dev pkg-config

Make sure that the keyboard shortcut for your application launcher is set to Alt+F1 (this is what ksuperkey will send when you press and release the Super key on its alone). Right click on the application launcher icon → Application Launcher Settings → Keyboard Shortcut. Assign Alt+F1 shortcut for the launcher over there.
Then run the following commands in a terminal:

git clone https://github.com/hanschen/ksuperkey.git
cd ksuperkey
make
./ksuperkey

Make sure to check that your meta/Win key now serves your purpose.
Now you have to set ksuperkey to Autostart, for example in System Settings → Startup and Shutdown → Autostart → Add Program… → small Browse button → Select the ksuperkey application, and you are done.
The default shortcut for the System monitor is Ctrl + Esc, you can override this if you want, go to Global Shortcut Settings -> run Command Interface (in KDE component) -> System Activity
Change the shortcut over there.
Go to Global Shortcut Settings -> KWin (in KDE Component) -> Show Desktop
Create shortcut of Win+D.
For Nautilius or Dolphin, Use this link to associate apps with shortcuts
Shortcuts and transparency in Kubuntu Oneiric
Go to Global Shortcut Settings -> run Command Interface (in KDE component) -> Lock Session.
Change shortcut from there.


According to online manpage (man 5 vsftpd.conf), you can use listen_port option to set port on which vsftpd will listen for control connections. For example,

listen_port=2121

Also note what the default /etc/vsftpd.conf recommends in its header:

# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.


How do I get two Eclipse sessions running at the same time?

I take it you don't want to use tabs to compare the projects, anyway I'd recommend that if you use Eclipse from the Ubuntu repositories-which are very very outdated-to download an updated version from the official website https://www.eclipse.org/downloads/
For the Mars release there is a helpful Eclipse Installer or just download and extract the package you require.

To start open the file "eclipse" within the extracted folder. Opening this file again gives you another Eclipse instance. You can drag the icon into the Unity toolbar for easy access. Generally running more than one instance is only a problem if the same workspace is being used, because when saving modifications one instance would interfere with the other.   So if you want to compare 2 different projects in 2 instances of Eclipse just have them in different workspaces. You could just quickly copy a workspace into the same directory, call it workspace2 and open the other instance using workspace2.

When playing around until you get the setup you need, a backup of your workspace(s) isn't a bad idea


I finally got it to work by installing the drivers downloaded from nvidia.com directly. Followed this tutorial. The previous times with older versions these errored out, but this time it worked and I am now able to use a second monitor. I'm delighted!


Follow the steps below.

Create a .desktop file, say lightburn.desktop, in ~/.local/share/applications. You can do that by running the following command in Terminal:

touch ~/.local/share/applications/lightburn.desktop

Open the .desktop file with a text editor of your choice. For example, to open with the default text editor, run

gedit ~/.local/share/applications/shutdown-for-dock.desktop

Add the following lines to the .desktop file it and save it.

[Desktop Entry]
Comment=Short description of the application
Terminal=false
Name=LightBurn
Exec=/full/path/to/the/AppImage-file
Type=Application
Icon=/full/path/to/icon/image

Click Activities or Show Applications and search for "LightBurn". It should appear now.
Right click and mark as favourite.
If right clicking doesn't show an "Add to favourites" option, search for the application in Activities screen, and then drag it across to the dock.


Kwin in KDE does support this in Kubuntu 11.10
you can bind the shortcut under General shortcuts -> Kwin
Look for quick tile
I found that the numpad did not work in my setup for some so I used Alt+Shift+Q/W/E/A/S/D/Z/X/C for my grid

I pasted a Kwinlayout .kksrc file that you can import:

  [kwin][Global Shortcuts] Activate Window Demanding
  Attention=Ctrl+Alt+A Block Global Shortcuts=none Cube=Ctrl+F11
  Cylinder=none Enable/Disable Tiling=Alt+Shift+F11 Expose=Ctrl+F9
  ExposeAll=Ctrl+F10 ExposeClass=Ctrl+F7 FlipSwitchAll=none
  FlipSwitchCurrent=none Kill Window=Ctrl+Alt+Esc Mouse
  Emulation=Alt+F12 Move Window Down=Meta+Shift+J Move Window
  Left=Meta+Shift+H Move Window Right=Meta+Shift+L Move Window
  Up=Meta+Shift+K MoveMouseToCenter=Meta+F6 MoveMouseToFocus=Meta+F5
  MoveZoomDown=Meta+Down MoveZoomLeft=Meta+Left MoveZoomRight=Meta+Right
  MoveZoomUp=Meta+Up Next Layout=Meta+PgDown Previous Layout=Meta+PgUp
  Remove Window From Group=none Setup Window Shortcut=none Show
  Desktop=none ShowDesktopGrid=Ctrl+F8 Sphere=none Suspend
  Compositing=Alt+Shift+F12 Switch Focus Down=Meta+J Switch Focus
  Left=Meta+H Switch Focus Right=Meta+L Switch Focus Up=Meta+K Switch
  One Desktop Down=Ctrl+Alt+Down Switch One Desktop Up=Ctrl+Alt+Up
  Switch One Desktop to the Left=Ctrl+Alt+Left Switch One Desktop to the
  Right=Ctrl+Alt+Right Switch Window Down=Meta+Alt+Down Switch Window
  Left=Meta+Alt+Left Switch Window Right=Meta+Alt+Right Switch Window
  Up=Meta+Alt+Up Switch to Desktop 1=Ctrl+F1 Switch to Desktop 10=none
  Switch to Desktop 11=none Switch to Desktop 12=none Switch to Desktop
  13=none Switch to Desktop 14=none Switch to Desktop 15=none Switch to
  Desktop 16=none Switch to Desktop 17=none Switch to Desktop 18=none
  Switch to Desktop 19=none Switch to Desktop 2=Ctrl+F2 Switch to
  Desktop 20=none Switch to Desktop 3=Ctrl+F3 Switch to Desktop
  4=Ctrl+F4 Switch to Desktop 5=none Switch to Desktop 6=none Switch to
  Desktop 7=none Switch to Desktop 8=none Switch to Desktop 9=none
  Switch to Next Desktop=none Switch to Next Screen=none Switch to
  Previous Desktop=none Switch to Screen 0=none Switch to Screen 1=none
  Switch to Screen 2=none Switch to Screen 3=none Switch to Screen
  4=none Switch to Screen 5=none Switch to Screen 6=none Switch to
  Screen 7=none Toggle Floating=Meta+F Toggle Window Raise/Lower=none
  Walk Through Desktop List=none Walk Through Desktop List
  (Reverse)=none Walk Through Desktops=none Walk Through Desktops
  (Reverse)=none Walk Through Window Tabs=none Walk Through Window Tabs
  (Reverse)=none Walk Through Windows=Alt+Tab Walk Through Windows
  (Reverse)=Alt+Shift+Backtab Walk Through Windows Alternative=none Walk
  Through Windows Alternative (Reverse)=none Window Above Other
  Windows=none Window Below Other Windows=none Window Close=Alt+F4
  Window Fullscreen=none Window Grow Horizontal=none Window Grow
  Vertical=none Window Lower=none Window Maximize=Alt+Shift+S Window
  Maximize Horizontal=none Window Maximize Vertical=none Window
  Minimize=none Window Move=none Window No Border=none Window On All
  Desktops=none Window One Desktop Down=none Window One Desktop Up=none
  Window One Desktop to the Left=none Window One Desktop to the
  Right=none Window Operations Menu=Alt+F3 Window Pack Down=none Window
  Pack Left=none Window Pack Right=none Window Pack Up=none Window Quick
  Tile Bottom Left=Alt+Shift+Z Window Quick Tile Bottom
  Right=Alt+Shift+C Window Quick Tile Left=Alt+Shift+A Window Quick Tile
  Right=Alt+Shift+D Window Quick Tile Top Left=Alt+Shift+Q Window Quick
  Tile Top Right=Alt+Shift+E Window Raise=none Window Resize=none Window
  Shade=none Window Shrink Horizontal=none Window Shrink Vertical=none
  Window to Desktop 1=none Window to Desktop 10=none Window to Desktop
  11=none Window to Desktop 12=none Window to Desktop 13=none Window to
  Desktop 14=none Window to Desktop 15=none Window to Desktop 16=none
  Window to Desktop 17=none Window to Desktop 18=none Window to Desktop
  19=none Window to Desktop 2=none Window to Desktop 20=none Window to
  Desktop 3=none Window to Desktop 4=none Window to Desktop 5=none
  Window to Desktop 6=none Window to Desktop 7=none Window to Desktop
  8=none Window to Desktop 9=none Window to Next Desktop=none Window to
  Next Screen=Meta+4 Window to Previous Desktop=none Window to Screen
  0=none Window to Screen 1=none Window to Screen 2=none Window to
  Screen 3=none Window to Screen 4=none Window to Screen 5=none Window
  to Screen 6=none Window to Screen 7=none view_actual_size=Meta+0
  view_zoom_in=Meta+= view_zoom_out=Meta+-


I have done this. I fixed the problem by

inserting a Boot Repair Utility live USB I made beforehand (but can be made from another device). This works beautifully even if you want to get rid of Ubuntu later. A note from Ubuntu:

> It is recommended to install the ISO on a live-USB (eg via UnetBootin or LiliUSB or Universal USB Installer). Do not burn it on a DVD if your computer has Windows8 pre-installed, or if your boot is in EFI mode.

Forced the system to choose boot device (pressed F12 immediately once I turned the system on).
Let the Boot repair Utility do its thing.

Afterwards It still gave me the option to choose Ubuntu (I chose the Windows sda loader instead). In my case I replaced Ubuntu with Fedora on my Scientific machine and kept Ubuntu on my personal machine. I never saw the choice to choose the deleted partition again once I installed a new Linux Distro on the hard drive.
If you don't want another distro, once you get back to the Disk Manager in Windows, you can then expand the partition. But then go to eightforums.com to find the Windows side of things.

http://ubuntuforums.org/showthread.php?p=10871917#post10871917

If that fails start here:

http://www.eightforums.com/installation-setup/48737-how-do-i-remove-ubuntu-without-recovery-partition-usb-boo.html

You can search in this forum for the windows side of things. Good luck!


Looks like this question was asked when Unity was brand new and not many people were using it. None of the answers listed make use of the Unity menu bar, which imo is the only worthwhile place to have a system monitor.

Apparently the things in the menu bar are called "Application Indicators" and so far the closest thing I've found to iStat Menus is indicator-multiload, explained here. In that thread there are also other examples of resource monitors, including one for hardware sensors.


I had this problem and tried all the things you did. The culprit turned out to be a very long environment variable. My LS_COLORS env var was over 9000 characters long as is was generated from a dircolors database. As soon as I removed it I could log in again.
In /var/log/syslog I was getting a segfault in libpcre.so.3.13.3. That env var must have been causing it to crash.


How can I install a tar.xz file from nodejs.org?

If you want to install and switch between multiple versions of node then nvm (Node.js version manager) is better option.

Check whether you have nvm or not.
If not then you can pull down the nvm installation script from the  project's GitHub page. The version number may be different, but in general, you can download it with curl:

curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh

Run the script with bash:

bash install_nvm.sh

It will install the software into a subdirectory of your home directory at ~/.nvm. It will also add the necessary lines to your ~/.profile file to use the file.

To gain access to the nvm functionality, you'll need to log out and log back in again, or you can source the ~/.profile file so that your current session knows about the changes:

source ~/.profile

If you have multiple Node.js versions, you can see what is installed by typing:

nvm ls

You can install your specific node version by typing:

nvm install 6.7.0

If you wish to default one of the versions, you can type:

nvm alias default 6.7.0

Now you can also reference it by the alias like this:

nvm use default

Check now node version to verify whether changes are made or not by typing:

node -v


Different display and window managers for Ubuntu and how to install them

These are the packages that provide you the listed Window Managers.

awesome
e17 - Is both a Window Manager and a Desktop Environment.
fluxbox
icewm
xfwm4
openbox
sawfish
fvwm
kwin
mutter
metacity
compiz
blackbox

You can install these packages through synaptic or by typing

sudo apt-get install <pkg-name>
<pkg-name> --replace

in the terminal.

Apart from the ones you have listed these are some Display Managers

gdm - Gnome Display Manager
ldm - LSTP Display Manager
xdm - X Display Manager
sdm - Secure Display Manager
wdm - WINGs Display Manager
kdm - KDE Display Manager
slim - Simple login manager
lightdm - Ubuntu's defualt DM

For the various available Desktop Environments please refer here.


Permission issues - cannot write www-data:www-data /var/www

You need to set write_enable to be able to write files to your FTP server.

Open Terminal (Ctrl+Alt+T), and Type:

sudo nano /etc/vsftpd.conf

Change the line:

#write_enable=YES

To this:

write_enable=YES

Make sure you have:

chroot_local_user=YES

And add the following parameter:

allow_writeable_chroot=YES

Then, Restart:

sudo service vsftpd restart


Unable to use canon LBP printer after upgrading ubuntu

You might find some help here: https://help.ubuntu.com/community/HardwareSupportComponentsPrinters/CanonPrinters.


11.2 is just the major version. The actual current version is 11.2.202.297 and that is a maintenance release for 11.2, released in July 2013, including the same fixes that the 11.8 major version received.

From Adobe:

  Flash Player 11.2 is the last supported Flash Player version for Linux OS. Adobe will continue to provide security updates.

I'm not sure how long that will continue but they still maintain a 10.something extended support release, so we're hopefully good for a few years yet.

Ignore Mozilla Plugincheck. It doesn't know what it's talking about.


Ubuntu,Ubuntu (no effects),Gnome,Gnome Classic

Ubuntu uses Unity with Compiz.
Ubuntu (no effects) uses Unity 2D with Metacity.
Gnome is, I think, Gnome Shell with Mutter as the compositor.
Gnome Classic is the similar to the old Classic traditional Ubuntu desktop, using panels. It's not the same because it had to be rebuilt using GTK3 widgets.

The "no effects" and "Gnome Classic" variants are the ones you'll want on desktops with little or no graphical acceleration. Compiz and Mutter both require a certain amount of hardware heft to run.


You need to run:
sudo apt install gir1.2-appindicator3-{yourversion}


Epson Perfection V33 not working after installing Trusty Tahr 14.04.1

Latest version of the drivers from Epson seem to work.  XSANE still doesn't work, but now the ISCAN program does, and that's all I need.


How to create a Debian package for the development version of abcde?

The fastest way to provide packages to your users is by creating a PPA, especially as you said development is moving fast. It has an option for nightly builds, which you might find desirable.

This way, you can produce stable releases as they come out, and automatically build for several Ubuntu releases and architectures without much trouble.

When development becomes more or less stable, consider including the package in Debian, which will make it available to a wider audience (including Ubuntu and Ubuntu-based distributions).


passphrase failed for encrypted disk after GRUB menu

I think you could have solved this if you kept a copy of master boot record. So that you can copy it where it needed to be.


My speculations about the problem having to do with the PATH variable in fact turned out to be correct. I had added a new path in the file /etc/environment, but instead of adding it to the end of the already existing row with paths, I added it as a new line afterwards (as I wasn't sure how it should be done and just thought I'd give it a try).

Apparently this gave rise to the problem of not getting any icons or being able to do anything from my desktop (as well as a lot of other problems I'm sure, that I probably would have noticed had I actually been able to do something!).


HOW TO FIX drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout ? ON MY RYZEN 5 2400G APU

In this post they're talking about the same problem as you. Ryzen-5-2400G-Ubuntu-What-is-needed-to-use
As far as I know you need to install the drivers from external way, i think in that post you will find the help you need.
I Hope i help you. Regards


Installing Ubuntu for the first time, purple screen of death

I think you are messing up with something else. The OS selector is the GRUB. Probably that GRUB is damaged. You could insert a live USB CD, boot into "Try mode" and run the terminal.

sudo update-grub

It could fix your problem. Probably.


Can't connect to Google Starbucks wifi on Ubuntu 17.10

The problem in my case is that Ubuntu does not know how to access https://aruba.odyssys.net/cgi-bin/login.  The host aruba.odyssys.net is the WIFI router.

The Work Around

Find the IP address of that router and add it to /etc/hosts.
In some situations you might need to also add a line to /etc/resolv.conf.

Detailed Steps

Find the router ip - in a terminal run:

ip route

(Example output: default via 172.31.98.1)
Edit the file by running sudo nano /etc/hosts to add the line:

172.31.98.1 aruba.odyssys.net

Optional? sudo nano /etc/resolv.conf to add the line before any other nameserver entries:

nameserver 172.31.98.1

After that the connection goes through without a hitch.

Bug Report

The problem seems to be bug report: 1766969.


Ubuntu 14.04 Wubi Installation: root.disk is write-protected cant be mount

Wubi worked too well so they stopped support for it and are forcing regular install which has never worked for me.  At least not without erasing my windows partition.


Problem on startup on Asus eeepc 900 with Kingspec SSD

I found the solution.It was a bios issue.After upgrading to the latest bios everything worked as it should.


UPDATE: Upgrade to 16 Failure + Google Chrome is not working anymore

I had the same issue when im running google-chrome from terminal,

I found that it needed a new version of NSS: Chrome 62 need NSS>=3.26. So I installed libnss3.

$google-chrome

[6999:7036:1113/200616.549496:FATAL:nss_util.cc(632)] NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer.
Aborted (core dumped)

#sudo apt-get install --reinstall libnss3

and it worked for me


The reason it is failing is that the file /etc/squid3/squid.conf contains more that one line matching the pattern. So when you do

ping "$(grep ....)"

all the newline separated matches are being passed as a single argument to ping which takes only a single address at a time as argument hence it is failing.

Note that rather than using the Regex pattern you have used you can simplify the matching of the last word using :

grep -o 'dc[^ ]\+$' /etc/squid3/squid.conf

assuming the word starts with dc.

Finally as you have multiple addresses to run ping over, you should use a loop :

for i in $(grep -o 'dc[^ ]\+$' /etc/squid3/squid.conf); do ping -c 4 "$i"; done

ping -c 4 will send 4 ICMP Echo_Request packets to each destination.


Sharing SWAP and /home beteween Ubuntu 15.10 and Kali Linux 2.0

Sharing swap will mean you can't hibernate but that's the only real downside.

Sharing a common /home can be a bad idea. You have different versions of the same applications writing their settings all over the place. Something is bound to explode at some point.

I'd avoid it and instead set up a shared data partition that you mount and/or symlink into each home to supplant things like ~/Documents, ~/Music, etc.


CertBot Installation: Could not connect to ppa.launchpad.net:80 (91.189.95.83)

I get connection refused error

Err:1 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial/main amd64 python3-certbot-nginx all 0.28.0-1+ubuntu16.04.1+certbot+3
  Could not connect to ppa.launchpad.net:80 (91.189.95.83). - connect (111: Connection refused)
Err:2 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial/main amd64 python-certbot-nginx all 0.28.0-1+ubuntu16.04.1+certbot+3
  Unable to connect to ppa.launchpad.net:http:
E: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/pool/main/p/python-certbot-nginx/python3-certbot-nginx_0.28.0-1+ubuntu16.04.1+certbot+3_all.deb  Could not connect to ppa.launchpad.net:80 (91.189.95.83). - connect (111: Connection refused)

E: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/pool/main/p/python-certbot-nginx/python-certbot-nginx_0.28.0-1+ubuntu16.04.1+certbot+3_all.deb  Unable to connect to ppa.launchpad.net:http:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


There are several issues with your test source package.

My guess is that you are trying to compile using slightly older C++ standards (gcc instead of g++) and probably based on a Windows routine (using conio).

I've tidied up the test program for you:

#include <iostream> /* dont need .h */
using namespace std; /* use a namespace */
/* #include <conio.h>   this is a windows header - dont need */

class fact
{
int i;
    static int count;
    public :
    void calculate()
    {
        long int fact1=1;
        count++;
        for (i = 2; i <= count; i++)
        {
            fact1 *= i;
        }
        cout << "\nFactorial of " << count << '=' << fact1 << '\n';
    }
};
int fact :: count;

int main(void) /* you had an invalid main declaration */
{
    int i;
    /* clrscr();  not necessary */
    fact f;
    for (i = 1; i <= 15; i++)
    {
        f.calculate();
    }
    /* getch(); not necessary */

    return 0; /* need to return a standard value */
}

then compile using

g++ factorial.cpp -o factorial


No CMAKE_C_COMPILER found while trying to build Clang

You are wasting your time at first. The Clang is already packaged for all Ubuntu versions.
To install it open terminal and type:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install clang llvm


PGP key: length, multiple identities, smart card

4K keys are a little bit larger and need some more processing power for creation and signing work.
Only you can decide that. If you don't want to link business and private keys, create two of them. Also read this answer on security.se to a similar question.
The FSFE fellowship smartcard contains already contains a key. All your questions to the smartcard are in detail answered in the FSFE wiki apart from the one whether a key only exists once: You cannot know apart from checking keyservers, but you will never know of a key that is not uploaded to keyservers (or used otherwise).
I know of Symantec Symantec Drive Encryption which uses OpenPGP keys, but is not free/libre software in case that matters to you.


libc.so was moved as part of the multiarch work in Ubuntu 11.04.  The reason that there can't be a symlink there is that the purpose of multiarch is to make it possible to install both the i386 and amd64 versions of libc at the same time so that you can run 32-bit binaries more easily on 64-bit systems and vice versa (and other similar situations).  If the libc6 package contained a symlink to the new location, then the versions of that package for different architectures wouldn't both be installable at the same time (which version of the symlink would dpkg pick?), defeating the entire point of the exercise.

Anything that hardcodes the path to libc.so must be updated to work properly from Ubuntu 11.04 onwards.  If the script you're talking about is part of Ubuntu, please report a bug on it and add the multiarch tag.


How do I force SSH to only allow users with a key to log in?

By default PasswordAuthentication is set to yes, so explicitly commenting it in /etc/ssh/sshd_config and restart sshd has no effect.

You'll need to explicitly set PasswordAuthentication no to allow only Public Key Authentication.

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no

PubkeyAuthentication yes

  NOTE (man sshd_config): PasswordAuthentication specifies whether password authentication is allowed. The default is yes.

And restart sshd

for sysvinit service ssh restart
for systemd systemctl restart sshd.service.

Additionally, it is best practice to use the following directives (in order) DenyUsers AllowUsers DenyGroups AllowGroups for finer SSH access control granularity and flexibility. ->
Reference: man 5 sshd_config ---> Ubuntu openssh man page does not include this any more as it absorbs openssh upstream docs (but FreeBSD, EL 7, 8 man page still have them).

Last but not least

  NOTE: be careful with setting UsePAM no as that way password locked user accounts (this is different from disabled / expired user accounts -> man passwd and man usermod) will NOT be able to login even if they have public key authentication configured in ~/.ssh/authorized_keys.


Why do numbers appear over open and/or pinned apps when i hold down Super?

If you press super+the number/letter it will focus/open that program the same way your mouse would.

All the key board shortcuts available for unity are listed here.

Here is a quick list:


Since the configure script seems to be looking at a specific location for make, I think you have two options:

Edit the configure script to force usage of the other make, not recommended since the path maybe hardcoded in any number of places.
Replace /usr/bin/make with the new version.

I can't find a PPA offering a higher version of make, so I see two ways out:

The easier way:

 sudo mv /usr/bin/make /usr/bin/make-3.81
 sudo ln -s /usr/local/bin/make /usr/bin

This way, you get a backup of the original make and can still call the old one.

The longer way:
Use checkinstall to manage the installation. Delete the files installed by using make install, then do:

sudo apt-get install checkinstall
./configure --prefix=/usr
make
sudo checkinstall make install

This adds the new make to to apt's database, making it easier to remove, upgrade or downgrade.


What component is responsible for tray and how to manipulate it using C++?

Check out libappindicator. It is responsible for putting the icon in the tray. The dropdown menu displayed by the indicator is a GtkMenu. The rest should be familiar if you worked with GTK+. Here is a minimal example.

#include <gtk/gtk.h>
#include <libappindicator/app-indicator.h>

static void do_something(GtkWidget *widget, gpointer data) {
  //...
}

int main (int argc, char **argv) {
  gtk_init(&argc, &argv);
  GtkWidget *menu = gtk_menu_new();
  GtkWidget *menuitem = gtk_menu_item_new_with_mnemonic("_This is a menu item");
  gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
  g_signal_connect(menuitem, "activate", G_CALLBACK(do_something), NULL);

  /* the second parameter is the icon displayed */
  AppIndicator* ind = app_indicator_new("test", "indicator-messages-new",
                     APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
  app_indicator_set_menu(ind, GTK_MENU(menu));
  gtk_main();
}

You compile it with the following. You'll need libgtk2.0-dev and libappindicator-dev packages.

$ gcc test.c `pkg-config --cflags --libs gtk+-2.0 appindicator-0.1`

You'll figure out the rest. The easiest way is to check out other simple indicator applications.
For example, see the indicator from this answer.


Comparizon between text editors in Ubuntu: Vim vs. Emacs vs. Nano

I love Vim. It's so powerful and effective and perfect in every way. However, most of the time I just use gedit, because I'm not as powerful and effective as Vim.


allot more space to ubuntu on laptop dual booted with windows 10 pro

Backup your data, and test your backup.
Find what is using space, for the GUI:baobab, for the command line: ncdu and decide if you can save some space by deleting files, or going further.
Boot Ubuntu from a DVD or USB, and use gparted to resize your partitions. (There is absolutely no risk of losing any data, since you've folowed step 1).


How do I keep Empathy from telling the other person when I am typing?

There does not seem to be a way to achieve this. Empathy itself does not really have any privacy preferences that I've seen.


How To Set Up Bazaar Server On Ubuntu Server

Here is a blog in which some guy talks about setting up a Bazaar server as they didn't want to publish their code (just like me): http://zeth.net/post/366/

Firstly, they made a new user for Bazaar (to keep everything nice and clean):

$ sudo useradd -m bzruser

After the user was set up, they simply created a regular repository there:

$ sudo su bzruser
$ mkdir -p /home/bzruser/repository/group/project/trunk
$ cd /home/bzruser/repository/group/project/trunk
$ bzr init

When the repo is created, you simply start the server by using

$ bzr server --directory=/home/bzruser/repository

Which starts listening to port 4155 (though it can be changed using --port option).

Of course, directory hierarchy is up to you, the admin, as well as stuff like making the server start on boot, but it's a different story. Bazaar server is up and running ;)


How to backup /proc folder with >2000 subfolders and 140TB kcore file?

The /proc filesystem is a virtual filesystem that contains file representations of information about the running system.  In other words, they do not really exist on any disk, so you should generally ignore it unless you have a reason to tweak some of the settings it provides access to.

The numbered directories contain information about running processes.  The kcore file allows access to the entire kernel virtual address space, which is 128 TB on amd64.

Other virtual filesystems include /dev and /sys.


Installing Ubuntu 12.04 LST along windows without formatting any drive

You probably have a good reason for wanting to boot from a usb, but just in case that's just your chosen means of getting ubuntu onto your machine - you do know you can install ubuntu through the windows installer, right?  This is probably simpler and requires no partitions.

I installed 12.04 using the windows installer through vista which itself was running through bootcamp on a MacPro.  Rube Goldberg signed the guestbook and so far the ubuntu software is working fine.  I mean, at some point you might want to partition or just get rid of windows entirely, but if like me this is your first installation of ubuntu then I think the windows installer is the easy road.


Uninstalling Window and using Ubuntu as the only OS

I can think of two ways of doing this.

While installing select erase everything and install Ubuntu as only OS. (First option)
Install Ubuntu alongside Windows or create separate partitions and install Ubuntu. After installing use the software grub-customizer and delete Windows entry there. Then you can manually delete Windows files.


via an existing os with a shell ...  to an empty partition then manage to get it to boot via grub

If that OS is Ubuntu: yes. But you technically do not even need a OS on the system to do this: you can use a live session to do this.

boot up a live session
install and start gparted.
create a  partition minimal the size of the ISO (2Gb should be more than enough).
put the ISO stored on disk into that partition.

Also see on examples on how to setup grub:

Install Ubuntu from ISO image directly from hard disk of a system running Linux?
Using a bootable live cd disk image mounted on the hard drive


Copying windows system32 files to wine system32 folder

You should install the program on windows then delete everything in the wine c drive and replace it with everything from the windows c drive. I've never done this with windows 7 but I have with windows xp, and I got Call Of Duty 2 running perfectly.


Keep Ubuntu at the frontier with the latest stable releases

There is a BIG problem with the word "stable".
What do you mean by "stable"?

Stable from the point of view of the developers of that single package?
Stable on Debian Stable? (Ubuntu is based on Unstable or Testing)
Stable on Ubuntu?

If 1., then it might break your system. It is stable for the developers, but they might have not tested it on Ubuntu.
If 3., then it is already included in the updated version of Ubuntu that you are using.
If 2., it's probably already too old for you.
When you clarify to yourself what you mean by "stable", then go on.
I'll try to answer to your points.

Add a list of external PPA with the latest packages. Would this work for all applications? Do all applications have their own stable-latest PPA?

No, only a few developers have PPAs, and only a few developers actually provide .deb files for installations. For example, the latest stable kernels are released by the developers only in source form (here), then various teams test and compile them to suit their needs (Ubuntu, Debian, Linux Mint, Android, Chromium and Chrome OS, ...)

Create my own PPA, to be automatically updated (possible?) with new releases. Apparently, you cannot create a PPA in launchpad with unmodified packages (like a database of other people's packages). So this is not possible?

"automatically updated".
This is a huge amount of work. First, because you have to track all the possible source codes of all the single packages that have a License that allows you to do this.
Then you have to upload the codes to Launchpad, then set up receipts for each and every of these source codes (and they will be different), and finally check for each and everyone of them if something goes wrong.

Use Synaptic Package manager? These seems to be quite flexible, allowing for latest releases. But it might not have access to all packages.

When you add a PPA, it does not matter which tool you use to install packages. apt, Synaptic, aptitude, it's just a matter of choice.

Writing a script that detects when new stable releases are available, and that can download and install new releases. This could be based in information from Launchpad, extracting information using Scrapy? This seems to be the optimal option. It might require considerable time to code, but it could turn out to be a nice script that can be transformed later into an app.

Here, I don't see a big difference to the second of your points.
I would suggest you to try some other distros that maybe are born to use the latest packages. For example Debian Sid, as already mentioned, or even Slackware.

FileZilla is a good example. There are no repository, so you have to come up with a script that goes to their website, checks in some way if the version installed on your system is older than the latest one that they provide, then downloads the file. Then you have to extract it. Now, since it is a precompiled binary, you will not need to compile it! So the script should just copy all the files in the right directories. In order then for this to be recognised by apt you have to create a fake dpkg entry, manually modifying the database to mimic the fact that this program was installed with a .deb file. Then you can pack everything in a .deb file yourself and put it into your own repository. And do this again for another package. And then the long part comes in: you have to check that the new version of FileZilla does not give any problem to other parts of Ubuntu.


What is upstart and why has it made a 38.1 GB file in ~/.cache

Upstart is the init system in Ubuntu (till 14.10). It manages services and starts/stops them at appropriate times, and captures their output into logs stored at appropriate locations. Upstart is also able to run services for each user, and the logs of these user-specific services are stored in ~/.cache/upstart by default.

Here is it's documentation

As to what caused them to grow so big, that's not up to Upstart, but to the applications being run. (In this case, gnome-keyring for one.) Inspect the logs to see what went wrong.

To see which programs are being run so, do:

initctl list

The configuration files for these services will be in ~/.config/upstart (if you created some yourself), or in /usr/share/upstart/sessions (for those that come with Ubuntu).

  Can I just delete them for a quick fix?

Yep.


I have coded a script which switches between Intel and NVIDIA's video card. Besides switching between them it also FIXES video/screen tearing when using INTEL video card. NVIDIA video card still showing video/screen tearing problems to which I haven't found a solution so far.
Here's the script on GitHub

#!/bin/bash
# -------------------------------------------------------
# A shell script that fixes screen tearing on intel video cards and switches between nvidia and intel graphic cards
# Written by: Bruno Assis
# Created on: 25/03/2017
# -------------------------------------------------------

#asks for sudo if the user uid != 0 then calls the script again with the current user name
(( EUID != 0 )) && exec sudo -- "$0" "$@$USER"

#-----------------
#----Settings-----
#-----------------

PREVIOUS_USER=$1
SCRIPT_NAME="20-intel.conf"
CONF_BASE_PATH="/etc/X11/"
CONF_BASE_DIR="xorg.conf.d"
CONF_PATH="/etc/X11/$CONF_BASE_DIR/"
CONF_FILE_PATH="$CONF_PATH$SCRIPT_NAME"
CURRENT_VIDEO_CARD=""

#-----------------
#----Functions----
#-----------------

#creates the config file.
function CreateTearingFreeFile {
    echo 'Section "Device"' >> $1
    echo '   Identifier  "Intel Graphics"' >> $1
    echo '   Driver      "intel"' >> $1
    echo '   Option      "TearFree"    "true"' >> $1
    echo "EndSection" >> $1
}

#switches the environment to use nvidia graphics card
function SwitchToNvdia {
    echo -e "\n Switching to nvidia."
    rm $CONF_FILE_PATH
    prime-select nvidia
}

#switches the environment to use intel's graphics card
function SwitchToIntel {
    echo -e "\n Switching to Intel."
    cd $CONF_PATH
    CreateTearingFreeFile $SCRIPT_NAME
    prime-select intel
}

function LogoutFromCurrentSession {
    echo -e "\n You'll need to logout in order to changes take effect."
    echo -e "\n Do you wish to logout now? (y | n)"
    read -n 1 option
    if [[ "$option" = "y" || "$option" = "Y" ]]; then
        #log out from the current session for the current user
        su -c "kill -9 -1" "$PREVIOUS_USER"
    fi
}

function SetupEnvironment {

    if [ ! -d "$CONF_BASE_PATH" ]; then
        echo -e "\n error: could not find $CONF_BASE_PATH."
        exit 1
    else
        if [ ! -d "$CONF_PATH" ]; then
            echo -e "\n could not find $CONF_BASE_DIR."
            echo -e "\n trying to create it."
            cd $CONF_BASE_PATH
            mkdir $CONF_BASE_DIR
            if [ ! -d "$CONF_PATH" ]; then
                echo -e "\n could not create $CONF_BASE_DIR folder."
                exit 1
            else
                echo -e "\n $CONF_BASE_DIR folder created successfully."
            fi
        fi
    fi
}

function CheckForCurrentVideoCardInUse {
    local _VIDEO_CARD=`glxinfo|egrep "OpenGL vendor|OpenGL renderer*"`
    if [[ $_VIDEO_CARD == *"NVIDIA"* && $_VIDEO_CARD == *"GeForce"* ]]; then
        CURRENT_VIDEO_CARD="NVIDIA"
    elif [[ $_VIDEO_CARD == *"Intel"* && $_VIDEO_CARD == *"Intel"* ]]; then
        CURRENT_VIDEO_CARD="INTEL"
    else
        ErrorHandler
    fi
}

function ErrorHandler {
        echo -e "\n Could not find your video card"
        echo -e "\n Please use glxinfo to check if the name is correct or if you are using NVIDIA's or Intel's card"
        exit 1
}

#------------------
#--Program Flow ---
#------------------

#Setups the environment if it hasn't already been set.

CheckForCurrentVideoCardInUse
SetupEnvironment

echo -e " current video card in use: $CURRENT_VIDEO_CARD"

#If the file exists then we should delete it and start nvidia

if [ $CURRENT_VIDEO_CARD == "INTEL" ]; then
    echo -e "\n Switch graphics card to NVIDIA? (y | n)"
    read -n 1 option
    if [[ "$option" == "y" || "$option" == "Y" ]]; then
        SwitchToNvdia
        LogoutFromCurrentSession
    fi
elif [ $CURRENT_VIDEO_CARD == "NVIDIA" ]; then
    echo -e "\n Switch graphics card to INTEL? (y | n)"
    read -n 1 option
    if [[ "$option" == "y" || "$option" == "Y" ]]; then
        SwitchToIntel
        LogoutFromCurrentSession
    fi
else
    ErrorHandler
fi


I tried to install pam-face-authentication on ubuntu 16.04, and got an error in configuration step

The PAM-face-authentication project is dead, and has been for quite a few years now, trying to configure it is pointless, I'm sorry.


How to broadcast audio output to iPhone?

By running an Icecast server we are able to stream our local sound to any device that is capable of tuning in to an Icecast/Shoutcast internet radio stream. I don't know if an iPhone already comes with this functionality but there likely may be an app to make this possible.

If you prefer a graphical frontend rather than a command line solution to start the streaming service you may try out stream2ip.


just edit your /etc/hosts, and add

127.0.0.1 ubuntu72

saved and change permissions

sudo chmod 644 hosts

and change your owned

sudo chown root:root -R host

restart with type sudo init 6

Hope this helps.


DVDs don't play after installing the restricted packages

try installing libdvdcss

Open Terminal and paste this

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

and Enter

then

sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu

now

sudo apt-get install libdvdcss

you should no be able to play DVDs

hope this helps


Had the same question. This might help...

http://ubuntuforums.org/showthread.php?t=2083643


Trying to install android-tools-adb and getting unable to locate package

Don't know why this hadn't been put as an answer, I just put it here from Charles Green excellent comment.

android-tools-adb and android-tools-fastboot are in the universe repository.
You can enable it in Software Center or just hit this one-liner which will enable and install everything.

sudo add-apt-repository universe && sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot


What you are trying to do is impossible. You cannot daisy-chain from VGA to HDMI (and also not the other way). This is only possible with Displayport 1.2 and above monitors. Both VGA and HDMI need a separate connector for each monitor.

Daisy-chaining several monitors from one DisplayPort output is called Multi-stream:

  “Daisy chaining” is a term that describes the ability to connect a series of devices together using a single connection between each two devices.  The new DisplayPort v1.2 daisy chainable displays have both a DisplayPort input and a DisplayPort output.  The DisplayPort output connects to the next downstream display.

So you need either one display output(VGA or DVI or HDMI or DisplayPort) for each monitor or you need one DisplayPort output and daisy-chain several DisplayPort 1.2+ capable monitors.


How to setup Easystroke so that the strokes work outside of the Easystroke window?

Original answer:
It won't work outside of Firefox. There is easystroke application in Ubuntu repo that lets you use system wide gestures.
sudo apt-get install easystroke

For more info check out this link.
What worked for OP:

In your home directory: rename .easystroke directory to .easystroke.bak in order to remove and backup all its previous settings and actions.
Reboot.
(If everything already works fine, then you can stop here).
Open Easystroke app.
In the preferences tab: uncheck the option "Show tray icon".
Reboot.


how to redraw or invalidate ubuntu desktop programmatically by c or python

As F5 is the keybinding for the Refresh function, it is handled as such. This is no different than hitting F5 in a web browser to refresh. The page is cleared, and a new request is made to the server. In the case of Nautilus, this means the view is cleared and the directory re-scanned.

You could possibly write a plug-in (extension) for Nautilus, which could grab the actual widget for the background and then invalidate only a partial rectangle, though I'm not sure this would solve your problem (you should be able to test by moving windows over the area in question and then moving them away again).

The best solution here though, would be to file a bug against Nautilus, and solve the problem directly, so that when such attributes are altered on files, Nautilus will do the correct thing and change the icon position or such.


Headless server: no monitor, no graphics?

I have found a solution which works for the issue I described above. This answer comes from a reply by user Stefan Lemmens (https://askubuntu.com/users/421108/stefan-lemmens) at question: How to use Ubuntu 18.04 on VNC without display attached?
His answer involves three steps:
(1) create a 20-intel.conf file, which creates a virtual display.
(2) create a shell script, setting the virtual display and connecting it.
(3) add the shell script to the Startup Applications, thus having it executed upon each reboot of the machine.
I made one change compared to his overview: I wanted a different resolution for the virtual display, so I used different xrandr parameter values. I found a description on how to find the correct parameter values here: https://ubuntuforums.org/showthread.php?p=8595940
Update April 2021: after upgrading to Ubuntu 20.04 LTS I had more graphic issues with this headless server. I asked a question about these issues: Intel Graphics issue after upgrade to Ubuntu 20.04.1
In the end I solved it by buying an HDMI plug. This makes the NUC think that a monitor is attached at boot time. Then I didn't need the software tricks to get things working. I removed the software steps as described above.


Yes, far surpassing it in fact ;-)

There is Déjà Dup.

DéjàDup allows you to easily back up anything to a local drive, a network drive (e.g. a NAS), Amazon S3 and elsewhere. It's set up in seconds and extremely reliable. You can install it by just clicking the link above.

Backup intervals can be set, and the system will automatically delete old files, if you want it to, after a given amount of time.

Select any storage target for your back up, even my university's web-server (shhh!) :P
All very easy. :-)

You can read all about it at gnome live.

You can restore specific versions of a file as well, the number of versions kept depends on storage and how long you set déjàdup to keep backups. In my example, there's about a version a day for three month for the file.


You should definitely backup your /home directory.

Also, I would consider backing up your /etc/ directory and other places that may contain programs or customized files or settings (such as .config).

If /home is on a separate partition, then you can just reuse it. Take care that you doesn't toggle the format option to "on" in the partitioning dialog.

That aside, my advice is that you start from scratch and re-partition your disk.
IMHO, you will need a bigger /usr/ partition than you did with 10.10.
Also, you can upgrade from the ext3 filsystem to ext4, and perhaps you could even consider migrating to LVM.


(32) Ad-Hoc mode is not supported by this device. - 13.10 on i5 NUC

from the sounds of the title your problem would appear to be hardware related however some reasearch i have done seems to point to an error with the internet connection not being shared with the device https://forums.lenovo.com/t5/ThinkPad-P-and-W-Series-Mobile/Wireless-AC-7260-Ad-Hoc-Problem/td-p/1542738 however I am not experienced enough to know how one could solve the problem on ubuntu


The ideal thing would be to install Windows first then Ubuntu, allowing Grub to give you the option to choose where you want to boot. but not all is lost, you can still install Grub and it is fairly simple.

The first thing you are going to do is boot into your live Ubuntu environment (cd, flash drive).

Then you are going to install boot repair

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

Once you do this you will will click the first button "Recommended repair"

Once you do this you should be able to restart and remove your bootable image and Grub should be back and you should be able to boot into Windows or Ubuntu.


For packages that have not been installed via the Software Center but from the command line via apt-get we may view the logfile in var/log/apt/history.log.


How to set document viewer default application?

Below is the procedure that helped me in resolving this annoying problem.

By Mina Michael:

  You don't need to delete the file and lose all the associations. You
  could just remove the lines that associate PDF to imagemagick. I just
  removed the following lines from ~/.config/mimeapps.list, and it
  worked!

  image/pdf=display-im6.desktop

  image/pdf=display-im6.q16.desktop;display-im6.desktop;

Regards,
Attique


How can I use Gioteck VX-4 controller in Ubuntu 20.04

Thanks to some clever minds in a thread on the Steam community forums i found a solution to my problem
A script made by user Giralua Indiano, and posted in the conversation solved it for me.
The problem is essentially one of permissions on /dev/uinput or /dev/input/uinput
It should be noted that this solution does not specifically solve my problem, but pretty much for any Dualshock 4 controller, or clone that uses the official driver.


Where to put "-p" for solving "pptpd is not running"?

You need to edit /etc/init.d/pptpd, and look for a line like:

status_of_proc "$PIDFILE" "$DAEMON" ...

And add -p before $PIDFILE:

status_of_proc -p "$PIDFILE" "$DAEMON" ...


How to forcefully remove a package marked rH by dpkg?

I ended up doing
sudo rm -f /var/lib/dpkg/info/cque-en.postrm
(whereas the -f is probably not needed).
Not the nicest of solutions, but at least I can update and upgrade my system without getting any error message and everything seems to be working just fine for the time being.


Ubuntu 12.04 won't boot after Windows crash

Sounds like you used the Wubi to install your Ubuntu. Basically it installs Ubuntu in the Windows directory and inserts boot options to allow you to select to boot to it during startup. Your Ubuntu install may be corrupt by the sound of it. Try the instructions in the link below to attempt to fix your Wubi install:

https://wiki.ubuntu.com/WubiGuide#How_can_I_access_my_Wubi_install_and_repair_my_install_if_it_won.27t_boot.3F


Can't install git and openssh-client - "held broken packages" and "no installation candidate"

Try this,

Go to the Ubuntu Software Center.

Type in "Muon Package Manager" and install it.

Open Muon Package Manager and type in "openssh-client".

Click on "openssh-client" in the window and mark it for installation.

Now click "Apply Changes".

It should bring up any dependencies you need. Just click ok to install those dependencies.

OR BETTER YET...

Type in "git" in Muon Package Manager and let it do the work for you. Just click ok to install the dependencies it come up with.

Hope this helps,


It looks like you are using Ubuntu GNOME, which uses GDM as the Display Manager, as it is usually called. What you are looking for is LightDM, the default display manager of Ubuntu. You can install it using the command:

sudo apt-get install lightdm unity-greeter

Choose lightdm as the default when you are asked:

You can always change your default by using the command:

sudo dpkg-reconfigure lightdm

(Or use any other DM you may have installed, in place of lightdm.)


Can't update to 14.04 because Software Updater can't set new software channels

I have to comment here because I still don't have enough reputation to comment. How have you tried to upgrade the release?

Have you changed your sources.list in the past?

Go to this site http://repogen.simplylinux.ch/ and chose your country, release and the Ubuntu branch and updates.

Then open a terminal and write "sudo do-release-upgrade".

Is it correct to assume you are using 13.10?


That can be easily done from lp/lpr command line: check file:///usr/share/cups/doc-root/help/options.html#MIRROR (available online) on your system.

  The -o mirror option flips each page along the vertical axis to
  produce a mirrored image:

lp -o mirror filename
lpr -o mirror filename

  This is typically used when printing on T-shirt transfer media or
  sometimes on transparencies.


How to grep lines which doesn't contain words with certain character except certain instances of words with that character

Since your data records are structured (as whitespace delimited columns), you may find it easier to use awk so that you can target the specific column.

KISS approach using separate tests

awk '$3 ~ /^[^H]/ || $3 == "H1"' file

or (using regex only)

awk '$3 ~ /^([^H]|H1$)/' file


Global keyboard shortcut for new browser tab

Why is chrome://newtab opening with firefox? This is probably something you could change.

If I'm understanding you correctly than an even simpler solution would be to use something like synapse to launch urls - which is a lot like QuickSilver.

The idea would be to press ctrl+space and begin typing a url wherever you are. You can then press enter which will automatically open the page in chrome if it has been set as your default browser.

By the way, synapse is not only good for this specific scenario but is a great tool in general to install and can greatly increase your productivity once you get used to it.

If you are using Kubuntu (like I am), then you can do the exact same thing with KRunner


The answer is in your question:

  Try: sudo apt-get install <selected package>

In your case:

sudo apt-get install g++


How to type A with Circle in Ubuntu 16.04 With Dead-keys?

Right Alt+W => å

Right Alt+Shift+W => Å


I also use X200MA, and I tried this "IPv6 off" method.

A little more speed up of X200MA Wifi.


I have modified the script to support new kernel(4.8.0-xx).

link: https://github.com/JJHu1993/librealsense-patch.git

```
Patched kernel module created successfully

Unloading module uvcvideo
Applying patched module uvcvideo
Inserting uvcvideo succeeded

Script has completed successfully. Please consult the installation guide for further instruction.

jjhu@jjhu-computer:~/projects/librealsense$ uname -r
4.8.0-52-generic

```


Use the reset command.

See man reset:

  When invoked as reset, tset sets cooked and echo modes, turns off
  cbreak and raw modes, turns on newline translation and resets any
  unset special characters to their default values before doing the
  terminal initialization described above. This is useful after a
  program dies leaving a terminal in an abnormal state.

It's useful for lots of situations where the terminal is acting up, like if a script has turned off local echo and died before turning it back on so you can't see what you're typing at the prompt...


asked for sudo password, post login to bash shell

The test fails since permission on /root is 700. Hence, it uses sudo to clobber the file on every login.


Steam crashes on startup on Ubuntu 18.04

Looks like I found the issue. Thanks to abu-ahmed al-khatiri for pointing me in the right direction.

I had to install the following package:

sudo apt install libnvidia-gl-410:i386

But changed 410 to 430 which is my current driver version.

Steam started up and I was able to login.

thank you guys!


How can I lower the delay after incorrectly entered login and sudo passwords?

In Ubuntu, to remove the delay for incorrect passwords in the terminal, edit the file common-auth found in the folder /etc/pam.d.

sudo nano /etc/pam.d/common-auth

Then add the string nodelay to the end of the line

auth    [success=1 default=ignore]      pam_unix.so nullok_secure

so that it says

auth    [success=1 default=ignore]      pam_unix.so nullok_secure nodelay

Then save the file with nano by pressing Ctrl+X, Y, Enter.

If you want to instead change the delay, first do the step above and remove the delay completely. Then add the following line to the same file before the line you altered above:

auth       optional     pam_faildelay.so  delay=500000

This will be the first uncommented line of the file. If you add this line after the first line you edited, then it won't work.

Now you can edit the delay value to whatever you want. I put a half second like you wanted.


enable the "Canonicle partner" in "software & updates"

refresh & install adobe-flashplugin

I found this on the internet:

sudo apt-get install browser-plugin-freshplayer-pepperflash


What is "Ubuntu Desktop USB" in tasksel?

This appears to be a bug that snuck into the seeds that were used to build ISO's for Ubuntu 11.10, presumably fairly late, as it was not caught in the fairly comprehensive beta ISO testing.

https://bugs.launchpad.net/ubuntu/+source/tasksel/+bug/869796

The task option itself is not really useful, and shouldn't be seen there.


Unable to scp and rsync through root user

There are two parts to this that may help with your analysis.

The root user on machine A is not the root user on machine B. 'root' is universally unique to its machine.
SSHD is often configured to disable root logins. So if you want to login as root@machineB you must ensure that root login is enabled on machine B.


TRY(hd0,0) NTFS5 error while booting Ubuntu installed as Wubi

This is posted in ubuntuforums take a look at it


ubuntu 14.04 running slow on bootup and online

2GB of RAM is probably not enough these days unless you run a lightweight desktop environment such as LXDE. Even then Chrome will quickly eat up all your RAM with only a few tabs open, especially with "app" type sites like gmail that use a lot of javascript. You will probably have to reinstall with the 64-bit version if you want to utilise more than 3GB RAM though.
A solid state drive (SSD) will greatly enhance your system's performance and is probably easier to find than compatible RAM.

You can use it in addition to the current internal disk and migrate Ubuntu onto the new drive without re-installation. My tip would be to keep your personal files in the /home directory on the rotational disk though, since they have far less impact on the system performance and SSD storage is more expensive (also see What are the pros and cons of having a separate home partition? and the Ubuntu Help on moving the home directory).

A freshly formatted filesystem will always run faster as files can be laid down in sequential blocks but as time goes on and files are re-written, fragmentation occurs so the disk has to seek to other areas of the platter.


How can I emulate RaspberryPi on Ubuntu?

I found out that /dev/sda2 is the parameter specifying which device to mount as the root filesystem.
I followed this guide.


How can I fix "Dirty Cow" bug on my Ubuntu 1604?

All is here : Dirty Cow

How can I know my kernel version

$ uname -rv

If your version is earlier than the following, you are affected:
4.4.0-45.66 for Ubuntu 16.04 LTS
4.8.0-26.28 for Ubuntu 16.10
3.13.0-100.147 for Ubuntu 14.04 LTS
3.2.0-113.155 for Ubuntu 12.04 LTS

How to fix this bug

Just do an apt-get upgrade

Am I in danger of hacking

Exploiting this bug means that a regular, unprivileged user on your server can gain write access to any file they can read, and can therefore increase their privileges on the system. More infos


How to explicitly pop up the dialog to enter passphrase for SSH key?

install package ssh-askpass-gnome this package will provide the binary
/usr/lib/openssh/gnome-ssh-askpass
ssh-add and ssh will in somes cases use the binary from  SSH_ASKPASS
To test , open a terminal :
export SSH_ASKPASS=/usr/lib/openssh/gnome-ssh-askpass
ssh-add </dev/null


Best way to put sensitive files on web server and keep them fro being accessible?

Outside the document root. Maybe /etc/ssl/www/mykey.ext.

sudo mkdir -p /etc/ssl/www
sudo chown root:www-data /etc/ssl/www
sudo chmod 0750 /etc/ssl/www
sudo cp mykey.ext /etc/ssl/www/
sudo chown root:www-data /etc/ssl/www/mykey.ext
sudo chmod 0640 /etc/ssl/www/mykey.ext

Now it is only available to root, sudoers, and www-data. However, if Apache is configured with user dirs (~/public_html), then any user could ask Apache to read it. Or, any user that can create documents that will be read by the web server could read it.

A better solution is to read the key from a database or as a variable within the script. On the database method, protect the web application from SQL Injection.


m3u8 and ts files are deleted after a while

Nginx cleans up the files by default, so we need to disable this function by adding hls_cleanup off;:

application myapp {
    live on;
    hls on;
    hls_path /tmp/hsls;
    hls_cleanup off;
}


SuperL shortcut calls Unity's built-in shortcut, which uses Unity's lock-screen (technically, it's unity-panel-service process in lockscreen mode, but that's a formality), which does use animation, and might be slower.

The alternative way, dm-tool allows you to lock the screen or switch-to-greeter (which is basically goes back to the screen that you see when you sign in). This method is slightly faster, since it involves your login screen, rather than Unity's tools. You can bind the shortcut to use dm-tool switch-to-greeter or dm-tool lock instead.

The shortcut is set within a specific compiz schema. There's two ways to go around disabling it. One, is via command-line:

dconf write /org/compiz/profiles/unity/plugins/unityshell/lock-screen "'Disabled'"

Another way is via compizconfig-settings-manager (which if you don't have installed, install via sudo apt-get install compizconfig-settings-manager). The shortcut is set under Unity Plugin -> General tab.

Once you have that done, you can go into System Settings -> Keyboard -> Shortcuts -> Custom , and create a new keybinding for SuperL with dm-tool switch-to-greeter as command.


Pass the -f option to ssh-keygen to specify a different key file. I recommend names like ~/.ssh/target.id_rsa for the key that lets you log in to target, and use the default name ~/.ssh/id_rsa (if at all) for your default key.

To make sure that SSH will always try the right key when you connect (if it doesn't find the right key, it'll prompt you for a password, or will reject the attempt if passwords are disabled), add a IdentityFile directive to ~/.ssh/config, for example:

Host git
HostName git.example.org
User gitter
IdentityFile ~/.ssh/git.example.id_rsa

Host web
HostName mysite.hosting-provider.com
User webmaster
IdentityFile ~/.ssh/hosting-provider.id_rsa


Are you using Firefox? It's dog slow on my PC as well for some reason.

I've installed Google Chrome and Opera - and they just fly.

google chrome

Also - try this as well:
(thanks to Ubuntu Geek)

Open your Firefox and type about:config at URL address bar and hit enter. To make a False into True, select the line to change, and double click. On the 2nd option change, right click and select Modify

network.http.pipelining > Make it True
network.http.pipelining.maxrequests > Make it 8 or 10
network.http.proxy.pipelining > Make it True
network.dns.disableIPv6 > Make it True


Just tried this... Run:

xdotool key XF86AudioPlay

This just simulates the pressing of the keyboard's Play button - (In my case Fn+F9)

You may need to install Xdotool first - this might work... For the program you are making, it could be installed as dependencies.

For more commands see here


ubuntu server does not get ip on restart

You just need to enable to it during boot time.

check it's status,
sudo systemctl status networking.service

Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)

This is second line of status on my system,
It is showing enabled; vendor preset: enabled. The first enabled means that it is enabled at the start time. The vendor preset: enabled means it is automatically enabled when installed(from the vendor).

This will do the trick for you,
sudo systemctl enable networking.service


On Ubuntu 18.04 I was able to pip install python-setuptools and run easy_install by full-path'ing it:

python /usr/lib/python2.7/dist-packages/easy_install.py pip

I prefer this over installing the python-pip system package because pip is moving faster than the distros update it, so I install it from PyPI.

HTH!


Which log should I use when debugging starting a web server on boot

systemd uses its own logging.  The command for viewing it is
journalctl

You can use
journalctl -u gunicorn.service

to trace a specific service.
Some other examples:
journalctl --since="2020-01-01 10:00:00"
journalctl --since "30 min ago"
journalctl _PID=1000

make sure the service is active. Check sudo systemctl status  gunicorn.service and if inactive you can use sudo systemctl enable gunicorn to make it active.

make sure the service starts after all other required services are started. Starting gunicon before nginx or your network is up wont work.  Something worth noting: your unit is lacking a After=network.target in the [UNIT] section.

Assuming your gunicorn works when manually started you do not need the nginx logs but just in case those are:
/var/log/nginx/access.log
/var/log/nginx/error.log


Why libinput debounce state is DEBOUNCE_STATE_DISABLED?

In your text you meticulously disabled the debounce ☺ Libinput has it enabled by default, and what the ModelBouncingKeys=1 quirk does is it says "bouncing keys for this model are, for whatever weird reason, the normal behavior" (I admit, it may not be immediately clear from the naming, I had to double-check it locally too). IIRC one such example is the virtual mouse pointer in VMWare: it slightly delays the click, and so upon double-clicking clicks get sent very close in time.
When debounce is enabled, instead of DEBOUNCE_STATE_DISABLED you'll see DEBOUNCE_STATE_IS_UP


"See also" documentation referenced by man pages

Unfortunately the situation is that every package mantainer provides one of more man pages for the applications provided by the package, but the content of the man page is

static - cannot change based on what is installed or not on your particular machine
subjective - is up to the maintainer (or upstream developer) to choose what to write into it, apart from the structure that should adhere to a general scheme, and should be syntactically correct to be parsed from the the deputed tools

So there is no guarantee that the indicated documentation is available in the repos, nor that it is available freely in general (sometimes also other referred man paged are non existent).

You could fire a bug against the package to signal that there is no reference (not event an URL) indicating where that documents could be found.


Unable to recognize and create partitions for Ubuntu Installation

I fixed the problem! I installed gParted Live on my USB and deleted all the partitions. After deleting the partitions I created a new table and then I restarted and Installed Windows 10. After the installation completed, I restarted my laptop and with Ubuntu in my another usb, I opened gParted, created a new partition for Linux and installer started seeing my partitions.

P.S. Sorry for my bad English.


Any package is not installing in my machine after downloading java. Give solution for my Problem

Run apt-get -f install from the command line as the message suggests.


How to make Google Earth stable in Ubuntu 14.04.2 64 bit?

I had the same problem, please follow my advice below:

disable network access
the application will now open successfully
enable your network access and the program should now operate correctly.

You will need to repeat this each time you open the application.


How do I prevent unattended screen rotation at login?

Finally I managed to understand where the problem comes from:

The tablet has a builtin screen rotation button. I haven't set up anything about this button. It is working by default with Unity/Gnome.
When I press this button the screen is clockwise rotated and the current screen orientation is stored in the file ~/.config/monitors.xml. This file doesn't exist unless this button is pressed, thus in the guest-session (as it mentioned in the question) the problem doesn't exist.
I don't have an idea which "feature" creates this file when I'm pressing the button.
When I'm logging-out, "something" edits the file ~/.config/monitors.xml (if it exists) and changing the orientation on random pricipal. Maybe "it" attempt to turn the orientation  back to normal, but "it" doesn't work properly. And this is the issue.

To fix this for a certain user, just add the following Cron job - crontab -e:

@reboot sed -i 's#<rotation>.*</rotation>#<rotation>normal</rotation>#' "$HOME/.config/monitors.xml" >/dev/null 2>&1

Replace normal with your desired orientation.
This command will substitute <rotation>something</rotation> with <rotation>desired value</rotation> within the file ~/.config/monitors.xml.

Unfortunately this workaround will fix the problem only when you start or reboot the system. When you log-out and log-in the problem may appear again. To fix this you can add your xrandr command in the Startup Applications.


Please run this command from the terminal:

sudo lshw -C network

Find out your wireless driver. Here is an example:

   description: Wireless interface
   product: Centrino Advanced-N 6200
   vendor: Intel Corporation
   physical id: 0
   bus info: pci@0000:03:00.0
   logical name: wlan0
   version: 35
   serial: xx:94:6b:99:55:xx
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
   configuration: broadcast=yes driver=iwlwifi driverversion=3.16.0-29-generic firmware=9.221.4.1 build 25532 ip=192.168.1.14 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn

In my example, it reports, driver=iwlwifi. Yours will probably be different.

In most cases, you can use the driver you found directly in the next step. However, if your driver is reported as wl0, then use wl. If it reports b43-bcma-bridge, then use bcma.

gksudo gedit /etc/pm/config.d/config

Use nano or kate or leafpad if you don't have the text editor gedit. Add a single line:

SUSPEND_MODULES="iwlwifi"

Of course, substitute the driver you found, if not iwlwifi. Proofread carefully, save and close the text editor. Reboot.

How does it work now?


how to rename directories that are hard to type?

If I rewrote your question properly based on your comment then

find /home/user/Downloads -type f -name \*.txt -print0 | \
  xargs -0  -I '{}' mv '{}' nice-directory

will reliably do what you ask.


Resizing Ubuntu partitions (root and home) safely in a dual booted system

Guiverc has explained in the comments how to allocate space to your root partition.  I'll address the part of your question/confusion about space used.

Where files are stored / System usage

20 gigs is fine for running Ubuntu and using the programs (the elaborate suite) that are already.  That includes much of what many people use the computer for, browsing the Internet (Chromium/Firefox), Writing documents, mail merge and other word processing activities (Libre Office).  I can go on with a very long list, which includes 10's of applications and thousands of commands tools.

You can't install many other programs with only 20 or 25 gigs.

All the programs that you install will go into the root partition, not your home partition.  Your home partition is where your personal configuration from the programs, as well as the data, such as your documents, pictures, videos, and movies and such.  The root partition may not change very much once you have your choice of applications installed.  But the personal data doesn't stop growing.

A safe way to resize

As long as you don't touch your Windows partition, it won't be affected.  You can use the gparted disk management tool to resize your Ubuntu fairly seamlessly.  It's included in your Ubuntu installation disk.  Use the Try Ubuntu option to work from there.

You can easily identify your Ubuntu partitions both by the size that you already know they are and the format type which is ext4.  You can identify your Windows partition by the format type which is ntfs.

Use the disk manager Gparted to adjust your home and root partitions with the GUI sliders.  Then just save the changes.

I've never experienced boot problems with resizing the partitions.  But if for some reason, it doesn't boot, reinstalling Grub would fix that.  A Grub install will automatically detect the installed operating systems (Windows and Linux) and add them to the boot menu.

Since the Windows partition will be untouched, Windows boot could be fixed by running a Windows recovery disk to fix the windows boot.

Note:

Installing or Reinstalling Ubuntu is a very seamless way of recovering from a boot corruption.  The new install will ask you to point to the partition where you want Ubuntu installed.  As long as you don't mark format the partition, it'll remove only the Ubuntu files and replace them with the fresh install.  It won't touch your /home or Windows partition.  Both your /home and Windows partition basically safe when your work on the partitions by specific name.


If you have another profile for gnome terminal you can do the following: from hud or from xterm call gnome-terminal --window-with-profile=profilename where profile name is actual profile. Then you can access options to change your other , broken profile

Alternatively, enable showing hidden files and folders in file manager, and delete everything in  /home/username/.gconf/apps/gnome-terminal/, which is where your settings are stored. That will effectivelly restore everything to defaul


My ubuntu system is asking login again and again when i even entered the correct login details?

I recently faced the same problem in my Ubuntu 14.04. I tried every solution present on Internet. after getting frustrated I tried to do something similar to what I thought is appropriate. I deleted the .profile file and restart system, after that I was able to login to same user. Following are the steps :

Press CTRL + ALT + F3  to go to TTYs.
Type: sudo mv .profile .profile.backup
Then Type: sudo reboot


How to get my theme settings back after update?

Log out.

Log in as different user (or as I did, on a virtual terminal).

mv ~/{.config/,}gnome-control-center

That will move the gnome-control-center dir into your home dir - just as a backup.

Then log in and use tweak tool to re-set your settings.


The short answer, no.

Empathy chat themes are made to support Adium based themes (Mac only IM client). A FAQ link about Empathy client (the first 3 questions answer questions about Empathy themes and how to create your own):

http://live.gnome.org/Empathy/FAQ#How_can_I_install_new_themes_in_Empathy_.3F

Pidgin themes uses a XML file to create buddy list themes which can also control the style of the messenger as well:

http://developer.pidgin.im/wiki/BuddyListThemes

Since the Adium Message Style code ( http://trac.adium.im/wiki/CreatingMessageStyles ) uses a different structure then Pidgin, the conversion process might take awhile but can be done.

If you really like the Ubuntu message style for Pidgin, converting it to that buddy list theme XML file format might be the best way. Once its converted, it can be offer to the Ubuntu packaging team so they can use it for future installs (just putting that out there ... wishful thinking).

The location of the Adium message style that you like can be found here on your system:

/usr/share/adium/message-styles/ubuntu.AdiumMessageStyle (directory)

I hope this explains more about Pidgin and Empathy themes.


Macbook Pro 8.1 Running OSX Lion, Windows7 and Ubuntu 11.10 Problem

(OP answered own question)

I maintained my macosx lion, windows 7 and downgraded to ubuntu 11.04 instead. I also recommend doing all your partitioning with the partitioning tool of ubuntu 11.04, it seems to be the most sane option...even alerts you about hidden,unused and/or empty partitions so you can recover and ensure you are within the 4 bootable partitions range required by refit to boot both linux and/or windows. Cheers. – e-zy mann Jan 6 at 8:06


Can't Get UFW Firewall to Allow Anything

It's because a browser is changing the port:
Try this for know the port:

netstat -anp | grep

But it's changing a lot (in my case).

Similar inverse problem: https://answers.launchpad.net/ubuntu/+question/106974


Settings > Privacy > Connectivity Checking

Set it OFF. (Then, restart your WiFi connection, thanks to @Dante's comment below).

This is the same fiasco as Microsoft's NCSI (Network Connectivity Status Indicator), a false negative to try ruin your mood.

And, yeah, it would be checking some URL like that one.


How can I get a list of all folders and files opened in last month?

Files:

find -type f -mtime -31

Folders:

find -type d -mtime -31

It will search from the directory where you typed it.


vga_switcheroo and Intel HD 3000 on Ubuntu 12.04

Add this to /etc/fstab:

none  /sys/kernel/debug debugfs defaults 0 0


What's the meaning of `-uc -us` options in `debuild -uc -us`?

Commands' built in 'help' is usually insufficient for this kind of thing.

If you had read the debuild manpage you'd find those are dpkg-buildpackage flags which are passed from debuild to dpkg-buildpackage and then would have been able to use dpkg-buildpackage's manpage to find the answer.

From the Xenial man page for dpkg-buildpackage:

   -us    Do not sign the source package.

   -uc    Do not sign the .changes file.


Find word inside special characters or spaces in multiple files

You can use the -w or --word-regexp flag e.g.

grep -wr 'is' .

From man grep

-w, --word-regexp
       Select  only  those  lines  containing  matches  that form whole
       words.  The test is that the matching substring must  either  be
       at  the  beginning  of  the  line,  or  preceded  by  a non-word
       constituent character.  Similarly, it must be either at the  end
       of  the  line  or  followed by a non-word constituent character.
       Word-constituent  characters  are  letters,  digits,   and   the
       underscore.


Z-star Vimicro webcam black white output instead of color

I've found that this bug was just reported but no fix with updates: https://bugs.launchpad.net/ubuntu/+source/cheese/+bug/838739


Is "gdmflexiserver" part of the default installation?

gdmflexiserver is part of the GDM project and is used to switch displays.  To support applications that are not currently LightDM aware a version is provided that uses the LightDM protocol.  It is placed in a different path to override the GDM version.  It is expected this can be removed in the future.


How to disable TLS SSL in vsftpd only for a specific user?

The user gets only known and authenticated after the TLS handshake is done - protecting the login is one of the reasons to use TLS in the first place. And because the user is not known before TLS is started it is also not possible to disable TLS for a specific user. One can only make the use of TLS optional, i.e. offer both. To have this force_local_logins_ssl and force_local_data_ssl have to be set to NO.


Binary requires older version of a shared object

In a pinch you could try to just create a symlink.

ln -s -T /lib/libABC.so.2 ~/libs/libABC.so.1
export LD_LIBRARY_PATH=~/libs/:$LD_LIBRARY_PATH

This is bad because the API will probably be different, but it may work temporarily (but it will eventually crash or give unpredictable behavior, it might also be a security issue).

The better option would be to find a copy of libABC.so.1 (try http://packages.ubuntu.com/). You could download the old package, install it into a nonstandard directory (like /opt/ or ~/libs/):

dpkg -i --instdir=/opt/ ABC-1.deb

then add that path to your LD_LIBRARY_PATH:

export LD_LIBRARY_PATH="/opt/lib/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"

Its possible that just installing into root will work (in which case you can do this), but there will probably be a conflict with the newer version. And may cause issues.

sudo dpkg -i ABC-1.deb


go to system setting then privacy  and off both -

include online search results

and

record activity

then observe the difference .


Given a MAC address, can I determine what device it is through QTerminal?

The first 3 Bytes of a MAC-address are assigned to the manufacturer, so in principle it is possible/easy to find the first part of your question.

I don't know about any downloadable database that contains those relations though (apart from installing wireshark, which has one built in but thats overkill here). So you would take the first 3 parts of any mac-address (like 90:5c:44) and google it.

Be aware that it is easy to spoof a MAC address - so don't make security decisions based on that information.

However there is no way to find any local modifications without direct access to the other machine.


How to completely remove kvantum manager?

It's easy bro, just use this code to remove kvantum manager: sudo apt remove qt5-style-kvantum qt5-style-kvantum-themes


The session entry is due to some cron job running as root. It is being spawned at 06:06.

Check relevant cron entries for root and find out what is being run at that time exactly.

Possible places to look at:

/etc/crontab
/etc/cron.d/*
/etc/cron.hourly/*
Root's crontab: crontab -e as root

If anacron is not active:

/etc/cron.daily/*
/etc/cron.weekly/*
/etc/cron.monthly/*

Just to add, if your system was compromised before, stop using it, take a backup (if needed), setup the OS again. Later you can analyze the backed up contents to dig further regarding the intrusion.


Re-encoding internet radio to a lower bitrate?

You need a publicly reachable host that you can run Icecast on and a host (possibly the same machine) to run the reencoder process on. Given the low bitrate you are aiming for, an average residential connection would suffice, if you control the public side of it. IOW if you are behind a CGNAT, and don't have IPv6 on either your home connection and or your mobile device.

server

sudo apt install icecast2
edit /etc/default/icecast2 to say ENABLE=true
edit /etc/icecast2/icecast.xml and change all passwords - do not make other changes!
systemctl start icecast2.service

encoder

sudo apt install ffmpeg
ffmpeg -re -i http://origin.example.com/stream.mp3 -c:a opus -b:a 32k -application audio -vbr on -content_type application/ogg icecast://source:bar@yourserver.example.org:8000/test.opus

The latter is just an example using ffmpeg as the transcoder. I'm not sure how stable it is nowadays. At the very least you would want to wrap it into a while true loop. Other options like liquidsoap or ezstream could be evaluated.

Exposing the Icecast port through a CPE/Router is outside of this scope and 'port forwarding' is a well covered topic in general. Obviously doesn't apply if you decide to run it 'somewhere in the cloud'.


How to install google chrome to watch netflix in ubuntu?

Go to google chrome download site

Click on download chrome.

Click on 64-bit debian/ubuntu

Click on Accept and Install

By default the application will be downloaded to /home/your-user-name/Downloads. Go to terminal and type

cd
sudo su
cd Downloads
apt-get install gdebi
apt-get gdebi google*
reboot

Close terminal and click on ubuntu icon on top left side

Type google and click on the google icon

The google browser window appears, type your email address and click on next

Type your password and click on next

The shown below page opens.

All done happy experience on google-chrome in ubuntu


What are the different application directories in a quickly ubuntu-application template for?

Here is a quick summary:

setup.py - this has some settings in it that you can configure for when you package and publish your app to a PPA. You can see them commented out in a new Quickly project.
bin/ - when you run quickly run it loads the application from here.
help/ - this contains your bundled help files. You can edit these for when the user clicks Help -> Contents.
tests/ - this is where you can unit tests to ensure your different functions are working as expected. You can create a test suite that could be automated (this is not always required for smaller apps, but recommended for any kind of semi-seriuous or more project).
MyApp - this is where you edit your code. You spend most of your time editing the files in here.
MyApp_lib - this contains some functions that are part of Quickly - if you need to create your own functions for how you access data in the project, you can add them here too.

You missed one off too:

data - this is where you store data for your app such as your Glade files (in the data/ui dir) and your icons and images (which are in the data/media dir).

Hope this helps.


How do I install the Cisco Anyconnect VPN client?

If you don't need the "official" Cisco AnyConnect VPN software, I highly recommend installing the "network-manager-openconnect-gnome" package in the Ubuntu Repository. It uses OpenConnect which is an open source client for AnyConnect.
Anyhow, that package allows for you to configure and manager your AnyConnect VPN connections through the normal network manager.

I have been using that to connect to my work VPN for the past few months and it has been working great!

You can find the package in the Ubuntu Software Center or Synaptic by searching for "OpenConnect."
If you wish to install it via the command-line, you can do so with: sudo apt-get install network-manager-openconnect-gnome

This adds an option to Network Connections. When you choose to add a connection, there'll be a new option under VPN Connections to add a "Cisco AnyConnect Compatible VPN (openconnect)". You can then connect to the VPN through the networks applet (in the system tray).


Did not detect Micromax MMX353G netsetter

Open terminal using Ctrl+Alt+T and write this code:-

sudo gedit /etc/modules

Press Enter
It will ask for your password, put it and press Enter then write these

usbserial

press Enter

option

press Enter

Now restart your system. After it open terminal and write

sudo modprobe usbserial

press Enter, give your password, press Enter then type

sudo modprobe option

press Enter. close the terminal. now connect your modem with the usb port. Wait for few second, and now you are done.


Can I invoke a graphical program to run with a hidden window?

The tool devilspie (available in 12.04 from repository) can act on new or already present windows, in a way at least similar to what you want.

You will need to create a configuration file, by convention something like .devilspie/my-app.ds. The configuration language is funky lisp-style poorly-documented abomination, but should be able to do what you want.

You need a way to (i) identify your window and (ii) decide on the action. If, for example, your window's title happened to contain "my-app" and you wanted to always put that window on 2nd workspace, this file would contain:

(if (contains (application_name) "my-app") (set_workspace 2))

Next, start it: devilspie -a ~/.devilspie/my-app.ds, and it should act on current and future windows (without -a only on future windows).

This might not be exactly what you want, for example (minimize) instead of (set_workspace 2) perhaps suits you better. The man page has a listing of all the symbols and their meanings, I hope you find a solution there.


How to fix boot issues on HP Laptop with Ubuntu 16.04?

since your problem happens "sometimes" and "randomly" and your hardware is old, I can bet it is a hardware issue.

I think in the same way you get a successful boot, you can't recognize any hardware problem... try again and again with memtest86 or similar, until you find the problem


I have no idea about the root cause, but I managed to get this working by:

renaming the dropbox binary under .dropbox-dist/dropbox-lnx.x86_64-3.20.1 to e.g dropbox-exec
changing .dropbox-dist/dropbox-lnx.x86_64-3.20.1/dropboxd to point to dropbox-exec insteadof dropbox
unzipping the contents of library.zip in .dropbox-dist/dropbox-lnx.x86_64-3.20.1 to the same directory


It's possible that the newer computer was configured to boot in EFI mode rather than in the older BIOS mode, which is probably what the older computer uses. Check your partition table. If you've got a smallish FAT partition at the start that shows in GParted or parted as having its "boot flag" set, or that gdisk shows as having a type code of EF00, then that's an EFI System Partition (ESP). Check it for files. If there's a directory called EFI/ubuntu with a file whose name ends in .efi (such as grub.efi or grubx64.efi), then this supports my hypothesis.

If I'm right, you can fix it by booting the hard disk using the circuitous path you've chosen, creating a small (~1MiB) BIOS Boot Partition, uninstalling the grub-efi package, installing the grub-pc package, and running sudo update-grub. This should set up a BIOS-mode boot loader on the disk. Note, however, that if you subsequently move the disk back to the newer computer, it may fail until you reverse the process and re-install either grub-efi or another EFI-mode boot loader.


Alarm Clock

Alarm Clock is a fully-featured alarm clock for your GNOME panel or equivalent. It's easy to use yet powerful with support for multiple repeatable alarms, as well as snoozing and a flexible notification system.


Open Chrome history using terminal commands

This won't open a history tab as you requested but you may be interested in trying googles history API.

As far as I can tell you can't just open the history tab via the command line. You can access the information in the history via the API mentioned above but according to this google page entering chrome://history in the URL should bring you to the history (which it does). However, I have not been able to get it to work from the command line using
google-chrome -new-tab chrome://history


Why do my (youtube) videos play for two seconds, then stop?

try gnash seems to fix the flash bugs for me  sudo apt-get install gnash


There is to many primary partitions

Your are limited to 1 primary partition. If needed create logical partitions inside the primairy partition and you are able to install in it.

  There is no root file system defined please correct partitioning menu

Linux must have at least 1 partition named "/".  If you do not create that the installer will stop until you have created it.


I had this exact same problem as a 980 Ti owner.

What you can do is:

When the GRUB menu shows up when you load the installer, select "Install Ubuntu" and press E.
On the next screen, replace the words "quiet splash" with "nomodeset", and then press F10 to continue. This will let you install Ubuntu normally with a GUI.
Once you finish and reboot, press E at GRUB again and do the "nomodeset" trick one more time, and it'll let you boot into Ubuntu and you'll have the chance to install the official drivers.


downgrade php5 5.5.3 to php5 5.3 in ubuntu 13.10

Ondrej php5-oldstable packages, would be a good option, but at the moment they don't work on Saucy Salamander (debphp.org/ubuntu-saucy-support.html). You could just wait.
You can compile PHP on your own.
Easy solution would be to temporarly switch to old (raring) repositories, install PHP (5.4), Apache (2.2), etc and lock package versions (so it won't be upgraded anymore):

Please consider it as a risky operation, as you might loose your settings and break your system. I did not test all the lines, so please tell me if I have to adjust something

# upgrade system, so you can add to ignore all updates later
sudo apt-get update
sudo apt-get upgrade

# remove your php, apache, etc
sudo apt-get purge apache2 php5 libapache2-mod-php5 # add here your server packages

# change repositories to raring  (with backup)
sudo sed -i.bak "s/saucy/raring/g" /etc/apt/sources.list

# update and install server packages
sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5 phpmyadmin #add here packages you need and make sure you install php5.4 and apache2.2

# change repositories back to saucy
sudo sed -i "s/raring/saucy/g" /etc/apt/sources.list

# ignore all current upgrades (package hold)
sudo apt-mark hold `aptitude -F%p --disable-columns search ~U`


Intel Graphics Driver for Intel GMA 3650 on 12.04

Clean install Ubuntu 13.10 32 bits, you will find your graphics card working much better and a performance boost, hope it helps you out on your doubt.

PS: your graphics wasn´t very well supported on the version you have.


How to install Windows and Ubuntu on the same machine?

Fix boot
After installing ubuntu the default boot will be GRUB so you need to replace it with MBR and below is how to fix it

1- boot from windows 7 or XP CD.
2- select repair --> cmd prompt.
3- input bootRec.exe /fixmbr

then you can install windows without any problem

Dual boot windows and ubuntu

please check the below URL

UBUNTU Wubi installation


How can I update diskless installation 11.04 to 11.10

This sounds like an upgrade that should not be done blindly - if you break that install then no computer in your school will be able to boot!

I don't see any reason 11.10 wouldn't work where 11.04 did for a PXE/NFS server setup. I would try doing a fresh install into a new directory and exporting that to a couple of clients first to check compatibility.

If it works, it sounds like you would want to chroot into /mnt and use do-release-upgrade to update it. But it's quite difficult to answer this properly without full technical details.

To point 2) I'm aware of no problems with NFS4 for this kind of setup, it is the currently accepted de-facto standard.

To point 4) 1Gb is no problem for an PXE/NFS server so long as your hardware supports it.


First, I would make sure that you are downloading the installer that matches your computer's architecture. For example, if your computer uses 64-bit, then download the amd64 version of Ubuntu. If your computer is 32-bit, then make sure you download the i386 version of Ubuntu. In windows, you can check this in your System properties. (Open Windows Explorer, right click "My Computer", click "System Properties").

If that does not solve your problem, then try using a different tool to make the live usb. Switch to UNetBootin or Rufus. If you are on a mac, then it will take more research and it is not as easy to make the usb.

It may also be worth it to make sure that your download integrity was not compromised. Verify the checksum after you download it.


Creating a script involving the memory usage of processes

#!/bin/bash
ps -e -o pid,pmem | awk '{  if($1>100) s+=$2} END {print s}'


Will there still be a separate Netbook edition after Unity becomes the default desktop environment?

Judging by Gerry Carr's Canonical Blog post as of Ubuntu 11.04 there will no longer be separate Ubuntu versions.

  One of the benefits of the direction
  that’s been taken with the next
  release of Ubuntu is that there is no
  longer a need for a separate netbook
  edition. The introduction of the new
  shell for Ubuntu means that we have a
  user interface that works equally well
  whatever the form factor of the PC.
  And the underlying technology works on
  a range of architectures including
  those common in netbook, notebooks,
  desktops or whatever you choose to run
  it on. Hence the need for a separate
  version for netbooks is removed.

Even the name will simply be Ubuntu instead of Ubuntu Desktop Edition in the future.


E325: ATTENTION swap file already present error in Vi

It means you or another user has already started editing the file and there are unsaved changes to it. You probably opened the file, began editing it, and then exited Vi without writing.

The instructions tell you what to do.

You can either press r to recover the file and you will see the version with the unsaved changes. Make your edits.

If you don't want to recover the unsaved changes, press q to quit and delete the file mentioned in the message

sudo rm /etc/.environment.swp

Then you can open it again and find the last saved version.

When you want to save your changes and exit press esc and type :wq.

But, are you sure you need to edit /etc/environment? Consider whether you had better use a per-user config file such as ~/.profile instead.


Wget all files from httpdocs or example.com/*

You can use wget over FTP, like this:

wget -m \
    --user=$FTPUSERNAME --password=$FTPPASSWORD \
    -o $LOGFILE -P $LOCALDIR ftp://example.com/sourcedir

with -m: use mirroring and -P: target directory.


Lubuntu 13.10 - Laptop Loses wireless after sleep

Please do:

sudo gedit /etc/pm/config.d/config

A new empty file will open. Add one line:

SUSPEND_MODULES="rtl8192ce"

Of course, substitute your actual driver in place of rtl8192ce. Proofread, save and close gedit.
Reboot

If you do not know the name of your wireless driver run this command:

lspci -nnk | grep -iA2 net

it will tell you the device name for wireless and ethernet along with the driver being used for each.

Edit: Here is one last thing to try:

sudo touch /etc/pm/sleep.d/wakenet.sh

sudo chmod +x /etc/pm/sleep.d/wakenet.sh

sudo gedit /etc/pm/sleep.d/wakenet.sh

Insert the following lines:

#!/bin/bash
case "$1" in
thaw|resume)
nmcli nm sleep false
;;
*)
;;
esac
exit $?
Save

This answer was found on the forum


You need install unixodbc-dev  and libmyodbc  packages, to do the same open terminal and type the following command:

sudo apt-get update && sudo apt-get install unixodbc-dev libmyodbc


Can I upgrade linux-base to newer major version?

It's safe to download linux-base 4.5 from the official Ubuntu Download Page for linux-base_4.5ubuntu1~16.04.1_all.deb and double-click the linux-base_4.5ubuntu1~16.04.1_all.deb that you downloaded to open it for installation in the Ubuntu Software Center. There won't be any dependency problems either.