USB sound card (Just for headphone jack, not recording)

Most devices will work. (some better than others, but most do...) Ubuntu often uses generic drivers, so there even are devices that work without installing a driver under Ubuntu, while, using Windows, you have to download a driver specially written for this device.

The only way to find out is to buy one ($4 isn't that much...) and try it. Or if you got the model name of a specific one, google it together with ubuntu and you may find something. If it's not working, try to get informations about that specific device used with Ubuntu, or try to return or resell it...


Try this. Installing from a USB flash drive is very similar to installing via DVD, so it should help. I'm assuming you know how to boot into the USB flash drive, so the above instructions should guide you through the installation process.


How to make a juju relation between rails and mongodb?

If you check out the Requires section of the charm's web page:

So unfortunately at this time the Rails charm only supports mysql, which is a shame because the mongodb charm is pretty sophisticated.

We'd need someone to add mongodb support to the charm via hooks, and there need to be relation hooks in mongodb for rails, the documentation on how to do that is here.

I have an interest in getting as many databases supported in the Rails charm as possible, but unfortunately Rails expertise in Ubuntu itself is usually shorthanded, if you or anyone is interested in working on it please ping me directly via my contact information.


You may install it from precise repository. I tried this in 14.04, it installs fine but I didn't try building any source using it.

Add precise repository

echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" | sudo tee /etc/apt/sources.list.d/precise.list
sudo apt-get update

Install qt3-dev-tools

sudo apt-get install qt3-dev-tools

Remove the repository.

sudo rm /etc/apt/sources.list.d/precise.list
sudo apt-get update


Apparently this was fixed in Qt Creator 2.2.0, #2837.

Version 2.2.1 will be available with Oneiric.


Switch between speaker, Bluetooth stereo, Bluetooth mono

I think I found a bug with this solution. In my case only 1 was set as index so I've got this error >>> No card found by this name or index.

$ pacmd list-cards | grep -B 1 bluez
    index: 10
    name: <bluez_card.00_0D_44_A6_7D_85>
--
        device.string = "00:0D:44:A6:7D:85"
        device.api = "bluez"
--
        device.form_factor = "headset"
        bluez.path = "/org/bluez/1085/hci0/dev_00_0D_44_A6_7D_85"
        bluez.class = "0x240404"
        bluez.name = "Logitech Wireless Headset"
--
    sinks:
        bluez_sink.00_0D_44_A6_7D_85/#11: Logitech Wireless Headset
    sources:
        bluez_sink.00_0D_44_A6_7D_85.monitor/#22: Monitor of Logitech Wireless Headset

I've changed your script and now it's working good. (It's not maybe best solution)

This is what I changed

#SINK=$( pacmd list-cards | grep -B 1 bluez | head -1 )
INDEX=$( pacmd list-cards | grep -B 1 bluez | head -1 | awk ' { print $2 } ' )
#SINK=$( pacmd list-cards | grep bluez )
MAC=$( pacmd list-cards | grep bluez | head -1 | awk -F . ' { print substr($2,0,length($2)) }' )


Found it working, using the following commands:

sudo apt-add-repository ppa:sylvain-pineau/kazam
sudo apt-get update
sudo apt-get install kazam


How can I refresh/reinstall/clear/set-to-default my bootup process?

It is simpler and quicker to do a fresh install.

If you don't have a separate /home partition, backup your data, through a livecd and an external disk, for example.

Then do a fresh install, with a separate /home partition, or using the existing one.


How to boot and install windows 7 back? Removing Ubuntu

How to burn installer to USB:

Copy Windows .iso to computer.
Launch Startup Disk Creator: press ctrl+alt+T, type usb-creator-gtk; or find it with gui.
Follow instructions of Startup Disk Creator, do not look at the title.


When I try to install OpenJDK 11, OpenJDK 10 got installed

Your problem is that there already was a JDK installed and installing new one didn't automatically set it to current version.
Here is a link to the post describing how to set Java version: Switch between multiple java versions

This is what I have found working:
apt install doesn't configure the Java version, if there already exist one.
If the openjdk-11 got installed, you can switch to this like that:
sudo update-alternatives --config java

This shows you a table of JDK's installed, pick the the correct one from the list with enter.
Also, you might want to change $JAVA_HOME environment variable, to  by running:
export JAVA_HOME="$(jrunscript -e java.lang.System.out.println(java.lang.System.getProperty("java.home"));')"


What does man page for pmap look like on 12.04?

All manpages are also hosted in browser friendly html on the Ubuntu servers. You can access them from:
Ubuntu Manpage Repository
There also is a custom search field to find specific manpages. This will eventually lead you to the manpage for pmap in 12.04 LTS.


How do I toggle to katakana input from hiragana with fcitx-mozc text entry? (16.04)

I do it this way:

to type Roman letters or western symbols >> Mozc off
to type Hiragana >> mozc on
to type Katakana >> mozc on hiragana input, then press F7
to type Hankaku-Katakana >> mozc on hiragana input Hiragana, then F8

Open mozc setup (i.e., Mozc settings) and assign your favorite keys

Katakana/Hiragana/Romaji keys are for some particular input methods available in Windows and are from the 20th century...


Ubuntu 18.04 fails to start in VirtualBox

I found it with just unable the 3D acceleration in virtual box display screen settings.


Ubuntu 11.10- Conky (Need help w/ config)

This page has over 4 million views. It's a great place to start with conky questions.

http://ubuntuforums.org/showthread.php?t=281865&highlight=conky


I know this is old, but I have accomplished it before in a different way.

First of all, I would setup eth2 on a bridge (call it br_wan) and NOT configure it on the host (so the host will not see any traffic arriving on that port or on the bridge). Share  br_wan with the guest and configure it as the wan port. No need to make the traffic go to the host just to have it forward it to the guest. Also, if you route wan through the host you may loose a lot, Untangle will not know the public IP address because the DHCP client will be running on the host which is something you probably do not want. And it is a bit less safe.

Create another bridge, you can call it br_net and that is the interface on
Untangle where all the other Guests and the host will connect to. It does not
need to be attached to a physical interface but it can be if you wish.

Configure the host to get its IP from the br_net interface, and configure
the gateway on that interface so the host will have its default route going
through the br_net interface.

I must say I started with a solution just like that but ended up choosing
to handle all firewalling on the host with the help of Shorewall. My rule now as
far as firewalling goes is to use UFW if the setup will not forward packets
and use Shorewall is the setup will forward packets. Shorewall is really awesome,
very easy to learn and very powerful.


ASUS ROG G750JS, Ubuntu 14.04, Wifi doesn't connect with modprobe wl

Actually, on further inspection, this appears to be a known bug and there appears to be a work-around available. I absolutely have not tried this.

WORKAROUND: 6_30_223_95 driver in http://people.canonical.com/~ypwong/drivers/broadcom/ , install an old version: https://launchpad.net/ubuntu/saucy/amd64/bcmwl-kernel-source/6.30.223.30+bdcom-0ubuntu3 (found at http://gaspuu.blogspot.no/2014/05/dell-precision-m4800-with-ubuntu-linux.html), or simply replace the wifi module with another one with better driver support (if laptop has no whitelist for modules).

Source: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1173761


pinning the the older version of docky or setting a higher priority for the the single deb in an empty repo would solve the problem


I have had great success using the xorg-edgers ppa in 14.04 with my GTX 750 Ti. I am able to use tty. This is a much simpler way to update to the latest nvidia drivers than the method you are currently using.

The commands below are for the latest beta drivers, if you want the latest stable branch instead of the beta, just replace "337" with "334"--both officially support the 750 Ti.

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-337
sudo apt-get install nvidia-337-uvm

PPA info here: https://launchpad.net/~xorg-edgers/+archive/ppa
and here: http://www.ubuntuupdates.org/ppa/xorg-edgers
The "umbrella" package is called nvidia-graphics-drivers-337

Note that this PPA will upgrade multiple Ubuntu packages related to X. If you choose to remove the PPA or upgrade the distro, you will probably want to run ppa-purge first--as noted on the Launchpad page.

When using the xorg-edgers PPA,you will also receive automatic updates to the nvidia driver series you selected--usually in just a few days after their release.


When on the logon page, next to the "Sign In" button, a little cogwheel should be visible, showing the various options for window manager. I wasn't getting any new options beyond "Ubuntu" and "Ubuntu on Wayland".

Eventually I found out I needed to restart the computer before it gave me the option to log on with Awesome.


How do I prevent a HP Pavilion DV6700 from overheating?

You know, i noticed that my nvidia PC is slower at graphics with unity3d. And a lot faster with unity2d. You may want to try running unity2d for a test.

Meanwhile read this: http://www.webupd8.org/2011/06/linux-kernel-power-issue-fix.html . Do it and test your results.


Temporarily Use a Different Version of a Package to Resolve Unmet Dependency

You can use Synaptic to lock a version, or force it (in case you keep several versions). These options are in the "Package" menu. I understand "force" is the one applicable in your case. This link may be instructive and has screenshots as well: http://techfrp.blogspot.com/2010/12/tip-how-to-force-and-lock-version.html


How do I get GPAC v0.5.0 on 12.04 where v0.4.6 is in the repositories?

Rather than building from upstream source, try building the package of 12.10 for 12.04.

Warning: this package seems horribly broken... don't expect a nice and clean build. A "nice" package should just build with debuild, this one doesn't.

echo 'DSCVERIFY_KEYRINGS="/etc/apt/trusted.gpg:~/.gnupg/pubring.gpg"' > ~/.devscripts because of Added key, but dget still shows "gpg: Can't check signature: public key not found"
gpg --keyserver keyserver.ubuntu.com --recv-key 311D765A This is the key to verify the source package following below.
dget http://archive.ubuntu.com/ubuntu/pool/universe/g/gpac/gpac_0.5.0~dfsg0-1.dsc to download the source package.
cd gpac-0.5.0~dfsg0/
debuild -uc -us with a failure to expect (example below!):

dpkg-checkbuilddeps: Unmet build dependencies: freeglut3-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libfaad-dev libjack-dev libmad0-dev libogg-dev libopenjpeg-dev libpulse-dev libsdl1.2-dev libswscale-dev libtheora-dev libvorbis-dev libwxgtk2.8-dev libxmlrpc-c3-dev libxvidcore-dev

Install the build dependencies (satisfy all above from the output you get), e.g.:

sudo apt-get install freeglut3-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libfaad-dev libjack-dev libmad0-dev libogg-dev libopenjpeg-dev libpulse-dev libsdl1.2-dev libswscale-dev libtheora-dev libvorbis-dev libwxgtk2.8-dev libxmlrpc-c3-dev libxvidcore-dev

Downgrade to Firefox 11.0 as shipped with Ubuntu 12.04. (Ugly, but needed to get it built! Do upgrades after build has finished...)

sudo apt-get install firefox=11.0+build1-0ubuntu4 firefox-dev=11.0+build1-0ubuntu4 firefox-globalmenu=11.0+build1-0ubuntu4

Fix the linker configuration to point to Firefox's libraries (also ugly):

echo "/usr/lib/firefox" | sudo tee -a /etc/ld.so.conf.d/firefox-gpac.conf
sudo ldconfig

Try again: debuild -uc -us (will take a while to compile)
One directory below, cd .., you'll find your packages.
Install them:

sudo dpkg -i *gpac*.deb

Note: debuild clean does not clean everything after a non-successful build (bug!!). Remove the whole directory and start all over from the dget command.

Advantages over plain building from source:

It tells you what build dependencies aren't met by package name.
Uninstalling it is really easy.
Everything is handled by your package management.

If not reverting to Firefox 11.0, I'm not getting the 0.5.0 compiled at all in 12.04 due to this error:

scenegraph/vrml_smjs.c: In function ‘JS_InitScriptFields’:
scenegraph/vrml_smjs.c:4239:4: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type [enabled by default]
/usr/include/firefox/jsapi.h:4458:1: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsid,  JSBool,  union jsval *)’
make[2]: *** [scenegraph/vrml_smjs.o] Error 1

After installing Firefox 11 (rather than 18), and getting other errors:

../../bin/gcc/libgpac.so: undefined reference to `JS_NewCompartmentAndGlobalObject'
../../bin/gcc/libgpac.so: undefined reference to `JS_GC'
../../bin/gcc/libgpac.so: undefined reference to `JS_ConvertStub'
../../bin/gcc/libgpac.so: undefined reference to `JS_SetRuntimeThread'
[...] much more...
collect2: ld returned 1 exit status
make[3]: *** [MP4Client] Error 1

You'll need to fix the linker configuration (the ld.conf.so.d/firefox-gpac.conf step).


Lubuntu is the lightest (least memory, lowest CPU load) of the supported flavors of Ubuntu. It chooses the best of low-power, low-memory packages, yet you can add packages found in Ubuntu if you need them. I have used it in many older PCs and find it very useful.

The LTS version 18.04.3 (64-bit) (32-bit) is supported until April 2023 and uses the well-known LXDE desktop environment. LTS versions are stabler and, in theory, less problematic.

The latest version, 19.04 (download), is an interim release, and only supported for nine (9) months after its release, January 2020. That doesn't mean it will stop working, but its expected users will upgrade to version 19.10 when it becomes available, then version 20.04 (which will be another LTS). However, there's two things special about 19.04 in this context.

It uses the LxQt 'desktop' (desktop environment), which many
folks find even faster and lighter than LXDE. It will still run the same programs ('packages') as LXDE Lubuntu and other Ubuntus, but the LxQt folks also made other changes, not replicating the LXDE look-and-feel exactly. That's why guiverc said above in comments "The change of desktop also complicates things.."
Like all other Ubuntus now, it is packaged as 64-bit only. Your PC is 64-bit, so it will run, but some folks like 32-bit versions on older PCs because they consume less memory. My personal suggestion is to try 64-bit (either 18.04.3 or 19.04) and see if you need to change to 32-bit to pull every last bit of performance out of your system.

Then, there's Xubuntu, which uses an older desktop, xfce. There is an LTS version (64-bit) (32-bit) with support until April 2023, and an interim 19.04 version (64-bit only) with support until January 2020, the same as all Ubuntus. It is not as lightweight as either Lubuntu with LXDE or LxQt, but as with Lubuntu, you can add other Ubuntu family programs. guiverc mentioned it in that comment above.

You will have questions. We will answer them.


I had the similar question, until I found tmux and bash tab completion. Pretty good, colorful, explanation.

Reference:

/usr/share/byobu/keybindings/f-keys.tmux
/usr/share/byobu/keybindings/f-keys.tmux.disable


Lubuntu and Ubuntu are basically no different in the execution of the OS. They are differently when it comes to GUI and applications.

Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space temporarily holds memory pages that are inactive. Swap space is used when your system decides that it needs physical memory for active processes and there is insufficient unused physical memory available.

You should use a Swap partition.

Here is a ref for you https://help.ubuntu.com/community/SwapFaq


Try hitting Fn+↑ several times. I've found that the display is actually turned on, only the backlight is at minimum.


About 'Adobe Flash plugin' in software center

There are two packages for installing flashplugin. The packages are called flashplugin-installer and adobe-flashplugin. adobe-flashplugin package is present in Partner Repository which is not enabled by default. While flashplugin-installer is present in multiverse repository but uses partner repository to download the source from package adobe-flashplugin as a post-install hook. If you installed ubuntu-restricted-addons metapackage. This package recommend flashplugin-installer and install it which may be your case.

More on available repositories and how to enable them.


GParted allocation trouble on Win8.1/Ubuntu dual boot

As far as I'm concern, you have shrunk sda5, not sda3, so the allocated space (before creating sda7) is still inside sda3, and after being created, sda7 is inside sda3.

I suggest you delete sda7, shrink sda3 from the left, then you can enlarge sda2.


Yes both Ubuntu and Unity are open source softwares.

https://unity.ubuntu.com/getinvolved/

http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29


With caution you can access terminal by going to "advance options for ubuntu" at grub, select the top most or only "ubuntu, with linux 3.x.x... generic (recovery mode)" and when in the recovery menu select "Drop to root Terminal."


Where to install the bootloader? Windows 8.1 and Ubuntu 14.04

For Windows 8.1 on Surface Pro 3, we found it was very important to choose the EFI partition (for us also /dev/sda2 (not default /dev/sda).  If not, the GRUB menu did not appear.

Another helpful hint for Surface Pro 3.  When is loads directly to Windows, to get to Ubuntu you can also go to Update and Recovery screen and then select Restart Now.  This brings up menu of ways to restart.  One of them is Use Device.   Besides USB, the Ubuntu distribution comes up as an option.  We have been using this as work-around (before we did re-stall and chose EFI Partition, which seems to have fixed the problem.)   Hope that helps!


What functionality of an iPad can I use with Ubuntu?

You cannot even boot an iPad until you connect it to iTunes. Personally, I installed iTunes on a WinXP VM at work (with permission) to activate it; activation this way works fine.

WARNING: Do not attempt to upgrade iOS on the iPad from iTunes running on WinXP in a VM - it will fail half way through the process and leave the iPad in a state of limbo which requires a non-virtual WinXP + iTunes to rectify.

You can install apps directly from the AppStore app on the iPad itself. This merely requires an iTunes account, which you must have in order to activate the iPad anyway.
I've not personally had any luck transferring music or videos to the iPad (using libmobiledevice1 on Ubuntu 9.10).

You can use the iPad as a mass storage device, but since iPad apps don't seem to have a concept of "file-system" they will never see them. Even the VLC app (no longer available) can only play videos which have been "shared" with it via iTunes.

I  have not tried running iTunes in Wine myself, but Wine's website gave the Jan 27 2011 release a 'Gold' rating (cf. http://appdb.winehq.org/objectManager.php?sClass=application&iId=1347)

(Oh, and I typed this on my iPad, so I guess it can at least do some things right. Although there's no way to type a backtick AFAICT)


Subwoofer not working in Dell Inspiron 7720

Firstly you will need to install alsa-tools & alsa-tools-gui from either the software center or from terminal.

sudo apt-get install alsa-tools alsa-tools-gui

Open HDAJackRetask

Select the IDT 92HD91BXX codec

Check the “Show unconnected pins” box (the internal speakers do not show as connected)

Remap 0x0d (Internal Speaker, which is your Front side) to Internal speaker.
Remap 0x0f (“Not connected”, which is the under-display speakers) to “Internal speaker”
Remap 0×10 (“Not connected”, which is the subwoofer) to “Internal speaker (LFE)”

Select “Install boot override” to save the settings to apply at boot time. Reboot. When it comes back, you should have full sound from all speakers.


After login, desktop appears but there's no menu bar and no dash

The answer turned out to be a ~/.gnome-session which contained

/usr/bin/ssh-agent /usr/bin/gnome-session

which must have been necessary at some point in the past, but emphatically isn't now.  Once I deleted this file, everything worked as expected.


Please drag and drop the file from the pendrive to your desktop. Then, in the terminal:

cd Desktop

And the remaining steps as before.


How do i secure[hardening] existing Ubuntu productions servers?

Best practices: Understand what the production servers do (deep internals), and consider whether or not your "hardening" will interfere with what they do.

"Harden" your test servers first.

A tool that I like is lynis from cisofy.com. It is free, and makes no changes, just points to vulnerabilities.

Realize that security/hardening is a process, not a paint. You cannot just spay it on once (and succeed).


64 bit executable won't run on 64 bit server

To run a command in the current folder you are in you must preface the command with ./ where the . means "this folder" and the / means "going into".  So, in the terminal in the rippled/build folder you would type ./rippled to run the program.  The ./ can be thought of as "current folder."  Other commands run without this specific syntax because they are in your system "path" and your build folder isn't.


Hello I copy and pasted the answer to a similar question I wrote in the Lenovo Forums with a little changes hope it helps:

  I have a new Lenovo Y740 with 1TB ssd set to rst, after intensite research over the web I came upon a tutorial that explains exactly how to do this, I don't know if you still need this but I hope any other person with the same problem can solve with this: http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

  the tutorial will walk you through how to change the ssd to AHCI mode in the bios without having to format or reinstall windows, and after that you can install ubuntu normally as you will do.

  also other related links:

  https://forums.lenovo.com/t5/Gaming-Laptops/Legion-y740-Window-on-PCIe-SSD-and-ubuntu-on-SATA-SSD-possible/m-p/4577649#M32994

  tutorial for ubuntu in lenovo y740:

  https://ark.party/ubuntu_y740

  if you have windows HOME and wish to upgrade to PRO with a product key

  https://softwaregroup.zendesk.com/hc/en-us/articles/115012409747-How-To-Upgrade-Windows-10-Home-to-Pro-using-an-OEM-key

  gigabyte and megabyte unit convertor to know how big you want your partition:

  https://www.convertunits.com/from/GB/to/MB

  I hope this is helpful.

  Good luck and Happy Linux =D


This is because your computer's boot order is set to look for a hard drive boot before a USB stick. Depending on the brand of your computer, hitting TAB, ALT or Del right after turning the computer on, should bring you into the BIOS boot menu, where you can select the USB stick to boot from.


Repeated flickering on fresh ubuntu 16 install attempt

Try the following:

When booting the live CD, press Esc when you see the two white icons at the bottom, one looks like a keyboard, one like a person.
Select your language if it comes up.
Press F6 to open Other Options.
Select nomodeset by pressing Enter.
Press Esc.
Press Enter to boot.

That should prevent any graphical issues related the Nvidia cards during install. I've had similar issues like that myself.


Some fonts in plasma are blurry, others are not

Okay so I managed to solve this issue myself. For some background, I also experienced some artifact issues in the terminal, which do not appear after applying the fix anymore either.

So first I created the following folder as it did not exist on my installation yet:

sudo mkdir /etc/X11/xorg.conf.d/

Then I added a file:

sudo nano /etc/X11/xorg.conf.d/20-intel.conf

And pasted this content:

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "TearFree"    "true"
EndSection

After rebooting not only the blurry fonts, but also the artifacts were gone.


bluetooth headphones (Powerbeats Pro) not able to switch to hsp/hfp Ubuntu 20.04

There is a bug report on this you can subscribe to and add your voice to the chorus:

Bluetooth headset HSP/HFP mode not working in Bionic

168 people are affected by or interested in this bug. Adding your input to the problem will help get it solved sooner rather than later.


Keyboard Shortcut: Only half of MCE R6 buttons work

I figured this out.

X11 only understands scan-codes up to 255.   Half of the buttons on the remote use higher scancodes. So, I first got a list of all the scancodes my remote uses by doing:

ir-keytable --read --device=/dev/input/event19

(/dev/input/event19 is the device my remote is on.  Running ir-keytable with no parameters will tell you which one yours is.)

That produces a list like this. The number at the end in brackets is what we're interested in.

scancode 0x800f0410 = KEY_VOLUMEUP (0x73)
scancode 0x800f0411 = KEY_VOLUMEDOWN (0x72)
scancode 0x800f0412 = KEY_CHANNELUP (0x192)
scancode 0x800f0413 = KEY_CHANNELDOWN (0x193)
scancode 0x800f0414 = KEY_FASTFORWARD (0xd0)

Anything in that list larger than 0xFF won't work. (Or, simpler said, anything that has three digits. So CHANNELUP (0x192) and CHANNELDOWN (0x193) in this case)

Then I just edited my /etc/rc_keymaps/rc6_mce file and mapped those buttons to something I knew was lower.

This also solved an issue I had with Kodi where some buttons weren't working on my remote.  KEY_INFO, KEY_STOP and some others.  I remapped those to regular key presses (KEY_INFO to KEY_I, etc) and that works as well now.


I have a similar script that works on my Aspire:

#!/bin/sh

sleep 5
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 10
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 32 8
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 8 1 1
xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 0 0 0


Reinstalling Windows 10 on dual-booted system, accidently deleted EFI partition

I found this:
https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd

What I would do is a little extreme and not at all recommended, but in case nothing else works and you are desesperate, you might want to give it a try in your own risk (I'm legendary when broking systems,nobody breaks a linux system like I do ;) )

(Just in case nothing works :'v)
if you cannot enter your system nor re-installed it by any mean, what I would do is download clonezilla ( clonezilla.org/ )
make a backup of the partition I want to save "Kubuntu" (root partition) and then wipe out the partitions, reinstall kubuntu (with same partitioning) and then restore the partition in the root partition.

That would be incredibly extreme but It might work :'v


Install GitLab on Apache as subdirectory

First, install GitLab according to its installation instructions, but make sure to install it under a relative URL. Note that GitLab recommends installation at a root URL, but that would prevent it from running within the "URL space" of your existing web server.

Once you have your GitLab instance up and running, say on http://internal.domain:1234/gitlab, you make your Apache proxy it. In the Apache configuration add a Location section like this:

<Location /gitlab>
    ProxyPass http://internal.domain:1234/gitlab
    ProxyPassReverse http://internal.domain:1234/gitlab
</Location>

Since your Apache will terminate the https connection, if the GitLab is on http, you'll need to tell GitLab this:

    RequestHeader set X-Forwarded-Proto https
    RequestHeader set X-Forwarded-Ssl on

Note that you'll also need to port forward ssh traffic from your public IP to the GitLab server. Otherwise git clone 'git@...' cannot work and you're limited to git clone https://....


Read the warnings in the text you posted above - the TL&DR is that you probably don't want to do this. Instead, use LUKS to always encrypt your swap. There are various ways to accomplish this, the easiest probably having your root+swap on an LVM physical volume which itself is LUKS encrypted.


How do I connect to the internet with the Ubuntu server with only wireless networks

By default, Ubuntu server edition does not include the required packages wpa_supplicant and wireless-tools. To install them, with a temporary working internet connection by tethering, ethernet or whatever means possible, do:
sudo apt update
sudo apt install wpasupplicant wireless-tools

Several dependencies will also be installed.
Next, find the interface name for your wireless device:
iwconfig

Your interface name may be something like wlp3s0 or wlo1 or similar.
Next, edit your netplan file to add your exact details. A template can be found here:
cat /usr/share/doc/netplan/examples/wireless.yaml

You can find the file that should be edited in /etc/netplan For example:
sudo nano /etc/netplan/01-netcfg.yaml

Fill in the exact details as outlined in the template. Netplan is very specific about spacing and indentation. It accepts spaces but not tabs. Proofread carefully twice. Save (Ctrl+o folloed by Enter) and exit (Ctrl+x) the text editor nano.
Follow with:
sudo netplan generate
sudo netplan apply

If there are no mistakes, you should connect immediately and automatically on boot.


The ambient light sensor/camera/accelerometer isn't working on the Nexus 7. Are there plans to support it?

There are plans to support all of the modules and sensors found in the Nexus 7.  This is one area in specific where help from the community would be an enormous help.  The status of this ongoing goal can be found in the meeting notes from a UDS Session about enabling all of the sensors, and can be found here: http://summit.ubuntu.com/uds-r/meeting/21334/desktop-r-arm-input-sensor-drivers/


how to fix sssd segfault on ubuntu 18.04.02?

You might check if https://bugzilla.redhat.com/show_bug.cgi?id=1283769#c6 ("there is a workaround available of either moving the cache to tmpfs or increasing the 'timeout' option in the [domain] section.") helps.


Windows 8 Installation couldn't find drives

Use a boot usb with ubuntu and gparted installed to resize your ubuntu partition, leaving unallocated the ammount of space you want to use for windows 8. Boot from the windows 8 usb to install it on the empty space. Boot back into ubuntu using the boot usb, install boot repair on it, run it to fix grub and you should be ok.


Whether to have the /home directory on a different Partition or not,
is totally up to You.
However, it is good practice to separate user data from System Data.

Pros of Partition Separation:

Safety: assuming You accidentally corrupted the system (Panic),
You can safely reinstall the OS, while keeping the /home partition and its data intact.
You can literally redirect the /home partition to point to a (New) separate storage device.
Users downloading or saving big files cannot jam the system due to exhausting the Storage Space.
Partial Encryption: You can encrypt one partition with a passphrase,
while leaving the other one accessible.

Cons of Partition Separation

slight read-write speed reduction. (negligible)
running out of memory on one partition yet the storage device is not full. This often means manually moving things from one partition the other.

Side Note:

In case You dislike Physical / Manual Partitioning of the Storage Device,
You can use a Logical Volume Manager (LVM) approach instead, which provides dynamic resizing of the Partitions when the need arises.


Test if yad version >= specific version number

You might want to try GNU sort's -V (--version-sort), along with -C (--check=quiet):

$ echo $BASH_VERSION
4.4.20(1)-release

then to return 0 (true) if the version is at least the given one and 1 (false) otherwise:

$ printf '%s\n%s\n' "$BASH_VERSION" "4.3" | sort -rVC ; echo $?
0

$ printf '%s\n%s\n' "$BASH_VERSION" "4.4.20(2)" | sort -rVC ; echo $?
1


Boot your computer.
After it is started, swicth to TTY1 by pressing Ctrl+Alt+F1
Log in using your normal username and password.
run this command to remove the drivers sudo apt-get purge "fglrx.*" "fglrx-amdcccle.*"
run sudo rm /etc/X11/xorg.conf to delete the x.org configuration file.
run sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64 to re-install x.org.
run sudo dpkg-reconfigure xserver-xorg to reconfigure x.org.
run sudo reboot to reboot.

You can do this from your Xubuntu computer, but you will need to type all these commands in. A lot of this I copy pasted from here: How do I remove the proprietary ATI drivers?

I don't use AMD drivers personally.


Dual Booting Ubuntu, can't load Windows 10

I had a similar issue to what Maciej above said, except my windows partition was UEFI and my ubuntu kept installing in legacy, so I would then only be able to get into Windows by changing my BIOS settings.  The issue was that my USB stick was legacy and didn't support UEFI, so the install would only run legacy.  Once I created a new boot/install disk on a better USB I was able to get both to work on the same boot menu


Help convert console command to right-click command

This should do the trick for you, comment if something weird comes up

#! /bin/bash
base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`"
if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
     dir="$base"
else
     while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
     dir="$base/$1"
fi

for i in `find "$dir" -type f -name '*xml'`; do java -jar "~/grabbertty.jar" $i > $i.txt; done

When you right click on a folder it should apply your find inside that folder, if you are not clicking on a folder it should apply your find inside the current folder.

Save it in your "$HOME/.gnome2/nautilus-scripts/<nameofthescript>.sh and make it executable with chmod 755 <nameofthescript>.sh.


Remove all possibly installed packages:

sudo apt-get remove nvidia-173 nvidia-current nvidia-current-updates

Clean up:

sudo apt-get autoclean
sudo apt-get autoremove

Install driver:

sudo apt-get install nvidia-current-updates


MPD fails streams after upgrade to Ubuntu 16.04.5

It's been a while, but I found the reason: a malfunctioning high-voltage protector in the network was causing issues (strangely enough just with MPD and with CURL).


how can I change file association globally?

Seems like the answer here

is actually the easiest, specifically going to a file's properties, going to the "open with" tab, and then setting as default for that file type. Here's the picture:


Been recently running into this problem, so it may be related to a recent update.

Give this a try:

sudo prime-select nvidia

sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf

sudo update-initramfs -u

Reference here

I'm able to boot with dual-monitors, indicating that the GPU ( GTX 970 in my case) is being utilized. However, running into other bugs.


General last resort(?) RECOVERY MODE alternative for NVIDIA driver

No exact details provided, as the details may change with time - the intention here is to keep this answer relevant as long as possible:

Boot into recovery mode,
e.g. while restarting the computer, early, at the "BIOS boot display"; hold or tap ESC, hold SHIFT-key or whatever action makes the grub boot menu appear, select the latest recovery mode.
Run fsck and network options in the menu before launching a root shell (those are menu alternatives in recovery mode!).
Install e.g. lynx or links (text mode web browsers!) with apt if you do not already have one of them, unless you can use the direct link below for wget <link>.
Use lynx/ links/ wget to download the driver from nvidia.com .
This MIGHT be the link: Check http://download.nvidia.com/XFree86/Linux-x86_64/latest.txt,
append the file content to http://download.nvidia.com/XFree86/Linux-x86_64/to create a direct link)
Remove all of any previously installed drivers.
E.g. bash NVIDIA-Linux-x86_64-440.31.run --uninstall or
check dpkg --list | grep -i nvidia and use apt / apt-get to purge relevant portions of what is listed.
Install the driver you DL:ed.
E.g. bash NVIDIA-Linux-x86_64-430.50.run --install
type reboot and press ENTER


Is it possible to have kcrash/crashdump switch to a VT when dumping?

I figured out how to do this. Basically you need to make sure kexec loads the vga16fb.ko module, which allows it to work in framebuffer mode. This can be done by adding --module=vga16fb.ko to the KDUMP_KEXEC_ARGS setting in /etc/default/kdump-tools. For example, mine looks like this:

KDUMP_KEXEC_ARGS="--elf64-core-headers --reset-vga --module=vga16fb.ko"

The --reset-vga parameter was there from my first attempt. It didn't originally work but I left it in there.


I had the same problem and I was able to fix it by updating the kernel to the version 4.18 with the Ukuu app. Beware, the kernel version 4.17 doesn't fix the problem.

You can get the Ukuu app via this link


Firstly, you should configure JACK with qjackctl (which you seem to have installed)

You should uncheck "Realtime" as you probably don't have a realtime-enabled kernel.

You should also raise the "Frames/Period" as you're having some buffer overflows, as they're called. The red text in the status box is telling you that.

Getting sound to work might take some tinkering on your part. If you install a neat little program called patchage (using apt-get or Software Center)
 then you can see a visual representation of your audio system with JACK. If this DJPlay program is truly JACK-enabled it should be very easy to connect and disconnect audio pipelines with Patchage.

JACK is a very advanced piece of software but unfortunately integrates poorly with the default environment. It takes getting used to.


Shift + F3 (backward search) doesn' work in google chrome in xubuntu

You are probably experiencing this issue reported for chromium browser.

Actually this is a bug in GTK+ version, shipped with Ubuntu.
Chromium developers implemented a workaround in dev channel but it should take a while to appear it in stable channel.

Now you can use CTRL-Shift-G as a workaround or wait until GTK+ get fixed or wait for workaround to appear in stable channel.


How to remove app icons in system tray on Ubuntu 18.04 with GNOME

Those icons are provided by a GNOME shell extension called Ubuntu appindicators (package name: gnome-shell-extension-appindicator). Since it's a system extension, it may not be easy to simply disable it using GNOME Tweaks or from the GNOME Shell Extensions website.
For newer Ubuntu releases you can use the following command to disable the extension:
gnome-extensions disable ubuntu-appindicators@ubuntu.com

Note that removing the gnome-shell-extension-appindicator package would get rid of those icons,  but it is not at all recommended as it will also remove the ubuntu-desktop meta-package which may break stuff in future (see this: Is it safe to remove ubuntu-desktop package?).
1. Hackish solution with granular control
You may use another extension called "Icon Hider" to achieve your goal. This extension lets you toggle the visibility of individual icons in top-bar.
After installing and activating the extension, open its settings. You should find entries corresponding to those icons you want to hide towards the bottom (for example in the screenshot below I have entries corresponding to "Skype" and "Alarm Clock" applications). Just toggle them off.
(You may have to re-login to see the effect.)

2. Alternative solution
Another solution is to use vanilla GNOME (GNOME shell sans modifications made by Ubuntu). Since GNOME got rid of the legacy tray (the old annoying tray at the bottom-left corner) from version 3.26, those icons in top-bar are disabled by default.
You may install vanilla GNOME by running
sudo apt install vanilla-gnome-desktop

Once it is installed, reboot (or re-login). Once you get to the GDM login screen you should find a cogwheel (⚙) next to the sign in button. If you click on the cogwheel you should find options titled "GNOME" and "GNOME on Wayland" along with Ubuntu and Ubuntu on Wayland. Select any of the GNOME options instead of Ubuntu options.


Installed Ubuntu 18 on external SSD now Windows won't boot properly

Ubuntu's Ubiquity does not correctly install to external devices. See this bug, but you do not need to reinstall:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379
Both Windows & Ubuntu are installed in UEFI boot mode.
Not sure why you do not have an UEFI boot entry for Windows. This should add a Windows UEFI boot entry or you need to run Windows repairs from your Windows repair/recovery flash drive (you did make one?)
sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi"  /dev/sda -p 2

That will allow you to boot Windows or Ubuntu if external plugged in from f12 UEFI boot menu.
But if you ever want to boot external on another PC, you need to have grub boot loader on the SSD. UEFI only directly boots external drives from /EFI/Boot/bootx64.efi as a USB drive boot entry (same type as installer was).
Since you use Windows to make SSD as gpt, you have the Microsoft Reserved partition as first partition. That is required by Windows before first NTFS bootable partition on a drive. But since you cannot boot Windows from external, it is not required. And then can be converted to an ESP - efi system partition with gparted as FAT32 with boot/esp flag. Then you can use Boot-Repair and its advanced  options to install grub to external drive. Afterwards double check that /etc/fstab is updated with new UUID from ESP on external, not existing sda2's UUID. Otherwise major grub update may update internal but not external drive's ESP.
After creating ESP on sdb, use advanced options to choose install on sdb2, and install grub to sdb drive.
https://sourceforge.net/p/boot-repair/home/Home/


Installing Ubuntu 13.04 as dual boot on a pre installed Windows 8 gives internal error

1.Start your windows and open disk management.

2.Delete the partition newly created(50GB) and make it unallocated(Free space).

3.Now try to install ubuntu alongside Windows8 using the live USB you had created earlier.


I hate directing you to another site, but there was a really useful thread about installing Wacom Bamboo tablets (both pen and pen&touch models) on the ubuntuforums.org site, you should check that out.  I've gotten the Wacom Bamboo Pen version to work flawlessly on Lucid with the instructions in that thread.

Ubuntu Forums .org - HOW TO Set Up the Bamboo Pen & Touch in Lucid

** EDIT **  I think you should only follow the first post or so in that thread, rather than follow the rest of the community's posts.  Favux knows more about this than anyone else.  If you have an issue with his setup procedures, send him a PM, he's very open to providing one-on-one assitance over privmsgs.


Unsupported Culture in .NET application under Wine

This may not be an answer to your question, but have you looked at the mono project ?
I've decided to not run programs through Wine, so I can't really help you there. You could try look for locale settings in Wine, though.
Myself, I run a virtual machine in Ubuntu with windows installed, through VMplayer. No wine needed.

Sorry if I went really off-topic with regards to your question.


From Szunti's answer in https://bbs.archlinux.org/viewtopic.php?id=120134

Screencast use gstreamer, and vp8 encoder by default

I installed gstramer package using pacman -S gstreamer in my arch linux.
You can take a look at beginning of https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c and see how to install in Ubuntu / Debian and Fedora.


How Do I Log USB Modem AT Command Output?

Below is an example script with some logic for logging and cleanup when the script terminates (the trap command). Important trick is to keep the input from the serial port open otherwise the input from the time the port was closed could get lost.

#!/bin/bash

LOGFILE=/var/tmp/modemlog
MODEM=/dev/ttyUSB1
MODEMCMD=AT+CSQ
INTERVAL=5

LOGDATE="date +%Y%m%dT%H%M%S"

# write command to modem
wrmodem () {
    echo -ne "$*"'\r\n' >"$MODEM"
    log "--- sent: $*"
}

# log message to a logfile
log () {
    echo "$($LOGDATE) $@" >>"$LOGFILE"
}

# logger
{
    trap 'log "=== logger stopped $BASHPID"' EXIT
    log "=== logger started: $BASHPID"
    while true ; do
        if read ; then
            log "$(tr -d \\r <<<"$REPLY")"
        fi
    done
} <"$MODEM" &

LOGGERPID=$!
trap 'kill $LOGGERPID' EXIT

# requester
while true ; do
    wrmodem "$MODEMCMD"
    sleep $INTERVAL
done


How to add user for samba share through a shell script

I have found the solution on my own from this website

So the basic thing is that if you want to make a script for adding a specific user to the samba share goes like this:

This part of script is 'standard' and doesn't need to be changed except for the path of the folder you want to share:

##################################################################
#!/bin/bash

# make a folder if it doesn't exist
[ ! -d /var/www/html/test ] && mkdir -p /var/www/html/test

# append these lines at the end of the /etc/samba/smb.conf file
tee -a /etc/samba/smb.conf << EOF
[test]

comment = Test folder
path = /var/www/html/test
browsable = yes
valid users = tester
read only = no
EOF

and now if you want to:

add an existing user: append this to the 'standard script' above:

username='<existing_user_name>'
(echo "<password_for_user>"; sleep 1; echo "<password_for_user>" ) | sudo smbpasswd -s -a $username

add a new user that doesn't exist in OS: append this to 'standard script' above:

username='<new_user_name>'
useradd -m $username
(echo "<password_for_user>"; sleep 1; echo "<password_for_user>";) | passwd $username
(echo "<password_for_user>"; sleep 1; echo "<password_for_user>" ) | sudo smbpasswd -s -a $username


Who takes up decisions prior to development in Ubuntu?

You ask two questions in one, really. But let me begin by saying that there is a reason why we call it GNU+Linux distributions. Ubuntu distributes free software that is made by other people. What software to use and how to use it, is up to Ubuntu, whereas the projects themselves have their own decision making processes.

For things like Unity, that is basically a Canonical product, Canonical has a large role in decision making. But Ubuntu is much more than that. Firefox, for instance, is maintained by Mozilla, so in that case, Mozilla makes most of the decisions. It's like that for lots of applications and programs. It's usually the ones who make the software who makes the decisions. Based on how that works, Ubuntu chooses what software to use. It would be legal to take software, like Firefox and make a new project out of it in order to become "decision maker", but that very rarely happens in reality. When there is a major dispute over the direction of which a project is headed, it can be forked into two different applications. That would also mean splitting the responsibility of decision making and maintaining the software, which is a big job. Also, if the software is very good and the project is very poorly administrated, it can happen, as was the perceived situation around OpenOffice.org, leading to LibreOffice, for instance.

So, since Unity is Canonicals project, they're in charge. But that doesn't mean that other opinions aren't valued and welcomed. They are. Canonical is at the center of it, but it's still a community project. But if the community splits into more than one opinion, and you have to have only one solution, then Canonicals opinion will be the final word. Usually, though, there is a best solution that people can agree on.

For general decisions about the direction Ubuntu is headed and what to focus on, there is a developer summit right after the release of one version of Ubuntu and another begins. The next starts on October 31th and is where the big picture is ironed out. You can read more about that here: http://uds.ubuntu.com/


Nope. Thunderbird does not have that kind of feature.  Don't think I have seen it in any kind of mail program to be honest.

Though I do like the idea and it only would require a field "when read" so you can sort on it. I would suggest to file an enhancement request.


As to the short question (and note the cmd #'s I added, starting from 0):

0) dmesg | grep wlan0

will give timestamps for system events (since your most recent boot) regarding your wireless router.  Note that some people's devices may be called 'eth0' or another variant besides 'wlan0', depending on kernel, device management, and other configuration settings beyond this respondent's grasp.

Next, follow the grep chain.  When in doubt, look everywhere you can think of.  Everywhere I could think of was /etc and /var/log:

/etc contains configuration files and scripts that define practically all of your services' behavior, no exaggeration.
/var/log is the standard location for these services to dump their outputs for logging, whether in a form easily identifiable to human eyes or not.

NOTE: Recursively grep'ing / can't hurt on current systems with memory, cpu time, and disk space to spare.  Familiarize yourself with coordinated bio breaks and ctrl-C, it could take a while.  Also look into redirecting output to a file, so you can read it later.  DO NOT sudo grep unless you really know what lies beneath those system directories grep denies you.  Those system directories quickly become redundant, recursive, overly verbose, non-text, and myriad.

I got copious information from the following greps:

1) grep "wlan0" -R /var/log 2>/dev/null

This grep will spit out all the lines I got from dmesg plus some things dmesg does not show - like calling process names for each timestamp or process id, lines from previous boots, the names of files I didn't even know about like /var/log/udev...

An aside: udev does frickin' everything!

That grep -R is going to need some deconstruction, however.  To relate it immediately to the initial grep statement, take any timestamp from dmesg (the numbers in brackets) and try

2) grep "\[ 8529.265562\]" -A 10 /var/log/syslog 2>/dev/null

where you replace my timestamp with whatever timestamp you happen to be interested in.  NOTE:  To be as noob-unfriendly as possible, the shell-and-regex people require you to add those backslashes to the brackets, i.e. \[ and \], don't simply copy-and-paste.  Why?  Barriers to entry, that's why.  Read up on grep and regular expressions.

The above grep -A should give you the line from dmesg you were expecting (which also got logged in /var/log/syslog with the rest) and its 10 succeeding entries:

$ grep "\[11766.363095\]" /var/log/syslog -A 10 2>/dev/null
Oct 19 08:57:40 mitzvah kernel: [11766.363095] wlan0: authenticate with 12:34:56:78:9a:bc (try 1)
Oct 19 08:57:40 mitzvah kernel: [11766.365183] wlan0: authenticated
Oct 19 08:57:40 mitzvah NetworkManager[1261]: <info> (wlan0): supplicant interface state: authenticating -> associating
Oct 19 08:57:41 mitzvah kernel: [11766.638899] wlan0: associate with 12:34:56:78:9a:bc (try 1)
Oct 19 08:57:41 mitzvah kernel: [11766.641406] wlan0: RX AssocResp from 12:34:56:78:9a:bc (capab=0x411 status=0 aid=2)
Oct 19 08:57:41 mitzvah kernel: [11766.641411] wlan0: associated
Oct 19 08:57:41 mitzvah wpa_supplicant[1866]: Associated with 12:34:56:78:9a:bc
Oct 19 08:57:41 mitzvah kernel: [11766.646978] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Oct 19 08:57:41 mitzvah NetworkManager[1261]: <info> (wlan0): supplicant interface state: associating -> associated
Oct 19 08:57:42 mitzvah NetworkManager[1261]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Oct 19 08:57:42 mitzvah wpa_supplicant[1866]: WPA: Key negotiation completed with 12:34:56:78:9a:bc [PTK=CCMP GTK=CCMP]

Hey look!  there's wpa_supplicant, in line 6.  It's process id was 1866 at the time.  And there's another process that sounds network-manager-like, called NetworkManager.  That's the culprit I was looking for that keeps waving its magic wand at my network setup.

This is not the end, of course.  I googled NetworkManager ; I regrep'ed the log and /etc directories on wpa_client armed with slightly more info.  When my network was least well and I could not figure out how NetworkManager knew what it did behind my back, I found solice in the following command:

3) grep wlan0 -R /etc
...
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:78:9a:bc", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
...

This /etc/udev/rules.d/70-persistent-net.rules file holds information about my less-than-permanent devices over from session to session, I think.  This would be how various services are able to seem like they know what it is you're plugging and unplugging from time to time ; they do know, since somebody's recording it.

All of this, just for info.  My main motivation is unsatisfied: I have yet to get my wlan0 up from boot.  Here's to hoping.

Linux - Because I like banging my head against walls.


Here is the complete procedure that allowed me to used my android camera with Zoom on ubuntu 20.04. It should also work on 18.04 and with other video software.

You need to install some basic utilities first. Please enter these lines:

yes | sudo apt-get install make
yes | sudo apt-get install gcc
yes | sudo apt install adb
yes | sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

Then enter these lines to install. The md5sum must be "OK".

cd /tmp
wget https://files.dev47apps.net/linux/droidcam_latest.zip
echo "5ff0e772a76befba4e37e03101b611d7 droidcam_latest.zip" | md5sum -c --
unzip droidcam_latest.zip -d droidcam && cd droidcam
sudo ./install

Check the video device was created:

lsmod | grep v4l2loopback_dc

To run it, start droidcam on your android phone. Start /usr/bin/droidcam on your ubuntu computer and enter the I.P. and port number from your android phone. Only the primary camera is used. The secondary camera and the microphone do not work on Linux.

I connect my phone to power when using it for droidcam and reboot it afterwards.


What efforts are there and what are the differences in webapps?

The two approaches are quite different under the hood.
After using both for a few days I prefer Fogger (at least at this stage of development).
Ubuntu Web Apps
Ubuntu Web Apps uses your preferred browser (Firefox or Chromium) to view sites utilising a browser plugin to create a page-specific shortcut in the unity launcher and to access unity desktop features (notifications, messaging menu, sound menu, dash, etc.).

One advantage of this approach is deep integration with the desktop.
One disadvantage (IMHO) is that web apps aren't given their own separate browser instance, but are just opened as a new page in Firefox or Chromium.

This means, e.g., that when cycling through open apps with Alt-Tab your web app simply appears as another browser window.
It also means that in some situations the web app seems to open as a new tab in the browser instead of creating a separate browser window.
All of the usual browser 'Chrome' (statusbar, URL bar, bookmarks bar) also appears in the app's browser window, meaning that you don't feel like you're using a desktop app--you're clearly using your browser.
Finally, you can only "integrate" a web page if your browser gives you the option, i.e. if someone has set up an integration script already.

Fogger
Fogger creates its own new browser window, with a new application instance for each web app and uses two kinds of files to customize the web page's behaviour:

user scripts

user styles

The user styles basically override the css of the page, customizing the page's appearance (see the Fogapp for Facebook).
The user scripts are javascript files that can customize the behaviour of the page in any number of ways. For these user scripts, Fogger exposes unity desktop features through a javascript API. One advantage of this approach is that pages feel more like desktop applications: they have their own separate icon in the Alt-Tab cycle, and the usual browser toolbars are absent. (I like the lack of clutter).
A big advantage of Fogger is that you can turn any page into a Fogapp on the fly, in a matter of seconds. For those who like visual tweaking, it's also easier to use a custom icon for a Fogapp, and Fogapps respect your icon theme where it has an applicable icon (e.g., for gmail).
If there is a disadvantage to Fogger it may be that the javascript API doesn't (yet) provide access to as many features of the unity desktop.

In summary
In the "I don't know which is better" category, the two frameworks take very different approaches to your user data.
Ubuntu Web Apps try to centralize data. Not only does your web app use the same data profile as your default browser, it also centralizes account data at the OS level via Gnome's "Online Accounts" manager.
Fogger, on the other hand, isolates each app's data. This makes it easier to, e.g., keep your browser signed in to Google but use a Fogapp to surf YouTube without being signed in (to avoid Google's nasty data collection).
It also makes it easier to set up multiple web-apps for the same site, each of which uses a different user profile. This could be especially useful if multiple users employ the same computer and want separate apps for "Mary's Gmail" and "Bob's Gmail". It also makes it easy to clear the data for one web app while leaving your other data untouched.
My Preference
So at present, I think Fogger provides a more flexible and satisfying kind of integration, even though at present Unity's Web Apps offer deeper access to the unity desktop.
There's nothing stopping Fogger from expanding its API for user scripts, though, and I hope that happens. Actually, it would be great to see the two approaches be united (unity?), with the current differences becoming different options you could choose when creating an app. This is one instance where I'm not sure competition is necessary.


Distribution upgrade (12.04 -> 14.04 LTS) halted while unpacking/installing packages

I have had the update manager fail on me on a few occasions as well (e.g. when running out of free disk space). In most (if not all) cases I was able to restart it and finish the upgrade without any problems. Note that I didn't reboot the machine in this half-upgraded state. I can imagine that that would break it.
So, no guarantees, but simply exiting the update-manager and restarting it may just work.


LightDM is running but does not display on login

Run the following in a terminal:

sudo apt-get update && sudo apt-get install lightdm

That should resolve your issue.


I had a similar problem and solved it this way.

I have an external big screen 24" 3840x2160 and a laptop same definition 3840x2160 but small screen 15.4"

I wanted the laptop screen to be zoomed because default scaling is too small ..
Scaling down result in blurry screen, the solution is to scale everything up with xrandr then use gnome scaling factor :

Here is how to do it (external screen on top of laptop screen but you can arrange in a different way if you change pos parameters)

xrandr --output DP-0 --primary --mode 3840x2160  --pos 0x0 --scale 2x2  --rotate normal --output DP-2 --mode 3840x2160 --pos 0x4320 --scale 1x1  --rotate normal --output DP-1 --off

Explanations :

--output : DP-1 is the external screen, DP-2 is the laptop screen (use xrandr -q to get your devices names)
--mode : both screen have same definitions 3840x2160
--scale 2x2 for external, 1x1 for laptop, this is "relative" to the primary which is external screen here..
--pos : external screen is at position 0x0, laptop screen is bellow at pos 0x(2160*2)=0x4320 because external screen is scalled by 2

Then

gsettings set org.gnome.desktop.interface scaling-factor 2

OR

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}"


i want to update from .net framework 4.0 to 4.5 or older (winetricks)

To install .NET do the following:

for custom named WINEPREFIX:

start winetricks application
select needed prefix in wizard, click OK
select Install a Windows DLL or component, click OK
check dotnet45 and/or dotnet452, click OK
wait wizard to finish

for default WINEPREFIX
winetricks dotnet45 # dotnet452


System fails to start after compiling grsec kernel

Did you remove your old kernel from grub?  If not, boot into that kernel.  (For future reference, leave your old kernel in grub until you try a new kernel.)

Right now, I'd suggest booting from a LiveCD, chrooting, and restoring the default kernel to get you back into your system.  It's a similar process to restoring Grub (documented here: https://help.ubuntu.com/community/GRUB2) but you'll want to redo the kernel rather than grub.


How do I get the grub menu to show on a MacBook?

SHORT ANSWER
This workaround worked on my 13" Apple Macbook Pro mid-2009 running 64-bit XUbuntu 20.04:

Create a LiveCD of the *Ubuntu (i.e. Ubuntu, XUbuntu, KUbuntu...) distribution just in case.
Delete the shim*.efi file located at /boot/efi/EFI/ubuntu/
Use APT to purge (i.e. completely uninstall) the shim DEB packages (shim and shim-signed) from the system.
Delete the grub folder located at /boot
Install GRUB again (i.e. perform a "fresh" or "clean" GRUB install with a command such as grub-install /dev/sda ; grub-install --recheck).
Fix GRUB's default settings at /etc/default/grub in order to [1] activate GRUB's console mode and [2] force GRUB to show its menu for 3 seconds, under such console mode. You do this by basically setting GRUB_TIMEOUT_STYLE=menu, GRUB_TIMEOUT=3 and GRUB_TERMINAL=console in /etc/default/grub.
Run sudo update-grub so these fixed default settings are applied to the "fresh" GRUB install.
Run efibootmgr in order to make sure that ubuntu (i.e. grubia32.efi or grubx64.efi, created and stored at /boot/efi/EFI/ubuntu) still is the default EFI boot loader option.
Reboot the system.
Boot from the LiveCD in case of problem.

(VERY) LONG ANSWER: HOW TO PERFORM THE ABOVE PROCEDURES

CREATE THE LIVECD.
There are several ways to create a LiveCD. The most basic ones, in my opinion, consist of downloading the *Ubuntu LiveCD .iso file (e.g. ubuntu-20.04-amd64.iso) and then either using UNetbootin to burn it into a USB stick (flashdrive) or (if you have access to a Linux shell terminal such as bash) using dd to burn such .iso file into any external media (USB stick, writeable CD-ROM etc.). The answers to this question provide a quite detailed set of procedures about it.

DELETE THE SHIM EFI FILES.
Once you've created your LiveCD and tested it to make sure that it's going to work if you happen to need it, open a shell terminal emulation window (CtrlAltT is a shortcut to it, but you can also run it from the Applications panel/menu or right-click a free area in the Desktop and then select the Terminal option) and then run sudo su in the terminal so you become the root user. Becoming root will spare you from having to use sudo on every shell command from this point on. After becoming root, delete the shim*.efi file (e.g. shimia32.efi for 32-bit systems, shimx64.efi for 64-bit systems) that is probably located at /boot/efi/EFI/ubuntu. Assuming that the shim .efi file is indeed located at /boot/efi/EFI/ubuntu, it can be deleted by running this command in the terminal:
 rm /boot/efi/EFI/ubuntu/shim*.efi

If the EFI partition isn't mounted, the command mount /boot/efi will likely mount it. If such command doesn't mount it, run lsblk -o NAME,FSTYPE,MOUNTPOINT,PARTLABEL |grep -i efi to find your EFI partition (e.g. /dev/sda1) and then mount it (e.g. mount /dev/sda1 /boot/efi). If the /boot/efi mount point does not exist, create it with the command mkdir -p /boot/efi and then mount the EFI partition at it (e.g. mount /dev/sda1 /boot/efi).

Furthermore, once such EFI partition is mounted at /boot/efi, and assuming that the shim .efi file is at /boot/efi/EFI/ubuntu, a command like thunar /boot/efi/EFI/ubuntu or nautilus /boot/efi/EFI/ubuntu (depending on which file manager your system uses) will give you root access to such folder (e.g. /boot/efi/EFI/ubuntu) directly from your file manager (windowed interface): this makes it easier to browse, find and then delete the shim .efi file (e.g. shimx64.efi).

*WARNING* If you're connected as root and accidentally delete the wrong file, such file is lost forever (it does not go to the trash bin). It's therefore advised that you pay a lot of attention on what you're doing so you don't end up rendering your operating system unusable/inaccessible.

In case you're wondering why you should delete the shim .efi file (i.e. the 32-bit shimia32.efi file or the 64-bit shimx64.efi file): GRUB's .efi file (i.e. the 32-bit grubia32.efi file or the 64-bit grubx64.efi file) is the appropriate one to use on a computer where Secure Boot is disabled. The shim version actually just provides a signed version of the GRUB .efi file version (because Secure Boot requires such signed version). But if you install *Ubuntu on a Mac with disabled Secure Boot (which is the frequent case), *Ubuntu adds the shim EFI file as the default option even though the Mac's firmware tells the bootlader to load the unsecure GRUB EFI file. So the solution is to delete the shim (Secure Boot) EFI file and then make the GRUB (non-Secure Boot) EFI file the new default one that must "interact" with the Mac's hardware at boot time.

PURGE THE SHIM DEB PACKAGES.
After you delete the shim .efi file that was located at e.g. /boot/efi/EFI/ubuntu, run APT to purge the shim DEB packages and therefore prevent future shim updates from creating the problematic .efi file again:
apt-get purge shim shim-signed -y

DELETE THE GRUB FOLDER.
Now that you're rid of shim, it's time to get rid of GRUB: go back to your file manager window (e.g. Nautilus, Thunar...) and delete the grub folder that is likely located at /boot. If you don't find the grub folder in /boot, run the command updatedb ; locate -i grubenv to find the location of the grubenv file: this file is stored at the grub folder, thus if you find the location of the grubenv file you find the location of the grub folder.

If you prefer to delete the grub folder from the terminal (assuming that it's located at /boot), just run:
rm -r /boot/grub

...and the grub folder will be deleted.

INSTALL A "FRESH" COPY OF GRUB.
Assuming that GRUB was installed in your first SATA storage drive (i.e. sda), install it back there by running this command:
grub-install /dev/sda ; grub-install --recheck

If your EFI partition is located at e.g. sda (e.g. /dev/sda1), it's common practice to install GRUB in /dev/sda. If your EFI partition is located at e.g. sdb (e.g. /dev/sdb1), it's common practice to install GRUB in /dev/sdb. And so on.
As explained here, it's also possible to use your LiveCD to install a "fresh" GRUB in your boot disk (e.g. /dev/sda). This method is particularly useful when your system's GRUB installer is damaged and you're temporarily unable to reinstall it through e.g. APT. I.e. for a 64-bit Intel Mac, the root installation command currently is apt install grub-common grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub-pc-bin grub2-common, but if it's not working on your system, you can always boot the LiveCD so GRUB is installed from the packages that are running from your LiveCD and then the new grub folder created in e.g. /boot is created by this LiveCD's GRUB.

FIX GRUB'S DEFAULT SETTINGS.
If you don't have the Gedit text editor, install it by running the command apt-get install gedit -y and then run this command in order to edit GRUB's default settings file with Gedit:
gedit /etc/default/grub

Once the Gedit window shows the contents of the grub file, remove the # character that is located at the left side of each one of the parameters GRUB_TIMEOUT_STYLE, GRUB_TIMEOUT and GRUB_TERMINAL, and then modify their options so they become these:
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=3
GRUB_TERMINAL=console

The menu option tells GRUB that it must create and show a menu when the computer is started or restarted.
The 3 option tells GRUB that it must wait 3 seconds before automatically booting the default operating system kernel, so the user has enough time to e.g. select a different kernel from the menu (if you prefer, you may either lower it to 1 or 2, or increase it to 4, 5 etc.).
The console option tells GRUB that it must ignore the graphics card's most appropriate driver and instead use a simplified VGA display driver that is much more basic but also much more compatible: it won't provide a fancy menu, but will provide a functional one that's more likely to work and be visible.

When you're done making the above modifications, save the file and then exit the Gedit text editor.
If you prefer to use the shell's standard text editor (which happens to be Nano), run nano /etc/default/grub instead of gedit /etc/default/grub.

APPLY THE CHANGES THAT WERE MADE IN GRUB'S DEFAULT SETTINGS.
This one is easy. Just go back to the terminal and run this command:
update-grub

The above command will read the content of /etc/default/grub and apply it into the settings of the "fresh" GRUB install, thus changing GRUB's behavior from this point on.

MAKE SURE THAT THE CORRECT BOOT EFI IS SELECTED.
Assuming that your EFI partition is mounted at /boot/efi and the shim .efi file that you deleted was stored at /boot/efi/EFI/ubuntu (this is *Ubuntu's default location for its .efi files), check if the GRUB's .efi file is there:
ls -l /boot/efi/EFI/ubuntu/ |grep -i '.efi'

Because Intel Macs are 64-bit computers, it's expected that a 64-bit *Ubuntu was installed on it, and that therefore a file named grubx64.efi is found by the command above. However, 32-bit systems should instead use a file named e.g. grubia32.efi, so in case your system is a 32-bit one, look for the 32-bit version of the GRUB .efi file.

If no GRUB .efi file is found, something's wrong and you're advised to install GRUB again (see STEP 5).

If the GRUB .efi file is found, then it's now time to check if the ubuntu EFI folder is selected as the default (i.e. first) source of .efi files (this precedence is important at boot time). In order to do it, run this command:
efibootmgr

The output must show something like this:
BootCurrent: 0001
BootOrder: 0001,0080
Boot0001* ubuntu
Boot0080* Mac OS X
Boot0081* Mac OS X
Boot0082*
BootFFFF*

In my case, ubuntu is identified as Boot0001* (its number is 0001), thus it's the one that needs to be the default option: from left to right, BootOrder must show 0001 (i.e. ubuntu) first. If this is not your case, fix it by running a command like this:
efibootmgr --bootorder 0001,0080,0081

This is going to make 0001 (i.e. ubuntu) the first boot option, 0080 (i.e. Mac OS X) the second one, and 0081 (i.e. Mac OS X) the third one (I'm yet to find what is the difference between 0080 and 0081. Anyway...).

If your bootloader is placed at e.g. /dev/sdb, you must update the boot manager by running the command efibootmgr --disk /dev/sdb.

If ubuntu isn't the active boot, make it active with efibootmgr -b 0001 -a. See more e.g. here or by running efibootmgr --help.

REBOOT THE SYSTEM.
Reboot your system in order to check if all this long journey fixed things out. You may reboot it from the menu or by running one of these terminal commands:
init 6

or
reboot

or
shutdown -r now

or
telinit 6

BOOT FROM THE LIVECD IN CASE OF PROBLEM.
The standard way to boot from a LiveCD on a Mac (iMac, Macbook etc.):

Power the Mac off.
Turn it on again and immediately hold the option key.
Type the password (if any was recorded in it) and hit enter.
Plug in your LiveCD USB stick, external DVD drive containing a LiveCD DVD, Mac's internal DVD drive containing a LiveCD etc. and wait.
Once the Mac reads the contents of the LiveCD, a new icon will show up on the screen. Select it with the arrow keys (◀ and ▶) and hit enter (i.e. return).
From here there are many possibilities depending on what went wrong. You may e.g. want to use your LiveCD to reinstall and/or update GRUB. In the worst case scenario, you can use the LiveCD to backup your data (to e.g. an external drive) and then reinstall the *Ubuntu distribution.


Mount And Blade Warband Will not run on Ubuntu 15.10

Sounds like the Game does not have execute permissions set.

In terminal go into the games directory

cd  ~/.steam/steamapps/common/"MountBlade Warband" #your path may be different

Then change the permissions with this command.

sudo chmod u+wrx mb_warband_linux

If that dose not work you may need to Verify Integrity of Game Cache

Hope this helps.


How can I remove Cairo Dock from my desktop after having uninstalled it?

Try this command :

sudo apt-get purge cairo-dock cairo-dock-plug-ins && sudo apt-get autoremove


How to save Shift + PrintScr Screenshots to Desktop automatically?

If you are using gnome-sccreenshot, you can set the default 'save-to' directory with dconf or gsettings.
# gsettings set org.gnome.gnome-screenshot auto-save-directory "[path-to-directory]"

MyDesktopFolder=$(xdg-user-dir DESKTOP)
gsettings set org.gnome.gnome-screenshot auto-save-directory "$MyDesktopFolder"

Then restart gnome shell
Alt+F2 and type r then ↵.


How can I make Gwibber use Desktop Couch?

Gwibber no longer uses couchdb as it's backend. It is no longer possible to make it sync across computers.


How to create "unallocated space" on my disk to install ubuntu onto?

I would personally do that by:

booting a live Ubuntu Mate
there I start sudo gparted
I would be very careful which disk I edit, and shrink the existing partition so that it still has plenty of free space, so out of those 96Gb I would cut out 64Gb.. and still have 30Gb which Windows can use.
Once I lower the size of the 500Gb partiton, I would create a new partition thee ext4 with a rough size of 60Gb, and the rest I would create as swap.
Once that is done, I would apply the changes, Note that this might take time, as at this time Gparted is moving any files that have been wriiten at the disk to relocate them... so it can safely resize it..
If all goes without issues, I would close gparted, and run the GUI Installer from Ubuntu, and when it asks me which partition to use as / I would choose that specific 60Gb newly created partition. Swap partition should be automatically recognized. You should not touch or mount any of the existing other partitions, unless you know what you are doing... they will be available after the installation is done.
And once the installation finishes, Ubuntu will have created a dual boot grub menu, where you will be able to boot to Windows, or to Ubuntu.

Once again, be VERY careful which partition you shrink, and which one you choose for your Linux installation..


Installing KDE desktop in ubuntu 16.04 error

I faced the same problem and according to
https://bugs.launchpad.net/kubuntu-ppa/+bug/1451728

This file overlaps with a file in gnome's account-plugin-facebook
  /usr/share/accounts/services/facebook-im.service

and kaccounts-providers has a file which overlaps with gnome's account-    plugin-google
  /usr/share/accounts/providers/google.provider

gnome and kde need to be co-installable so these files should be renamed  to not overlap.

So, this is a bug and has to be resolved by the ubuntu and kde fellas.
A workaround is to try the following:

sudo dpkg -r  account-plugin-google unity-scope-gdrive
sudo apt-get -f install

I just tried it.


Lost most of the basic drivers on Ubuntu

I suggest you do:

sudo apt-get install --reinstall linux-image `uname -r`
sudo apt-get install --reinstall linux-image-extra-`uname -r`

Your drivers, etc. should be restored to default.


How do I change rxvt colors to white on black?

Note:  Updated answer to include desktops like GNOME and LXDE that do not load .Xresources or .Xdefault files by default.  Also updated for packages rxvt-unicode and rxvt differences.

You can launch it with the command in a terminal window:

rxvt -fg white -bg black

which sets the foreground to white and the background to black.

Or you can launch it using Alt+F2 and typing it in:

Either way listed above should give you a rxvt terminal that looks like this:

To make it permanent, you can add the following lines to the end of your ~/.Xdefaults or ~/.Xresources file:

Very important:

If you installed rxvt-unicode add these lines to your .Xresources file:

URxvt*background: black
URxvt*foreground: white

If you installed just rxvt add these lines:

Rxvt*background: black
Rxvt*foreground: white

URxvt can support more fonts.

If you wanted to use a Monospace 9 font with urxvt, add a line like this:

URxvt*font: xft:Monospace:size=9:antialias=true

Or you can use fc-list | sort to list all fonts available, then you can find one you want and set it like this:

URxvt*font: xft:DejaVu Sans Mono:size=9:antialias=true
URxvt*boldfont: xft:DejaVu Sans Mono:bold:size=9:antialias=true

Rxvt has limited font support.

If you run the command xlsfonts from a terminal window, it shows you all the fonts that can be loaded by rxvt instead of urxvt.  Here is some examples:

xlsfonts | less

The list will look something like this (truncating for space):

-arabic-newspaper-medium-r-normal--0-0-100-100-p-0-iso10646-1
-arabic-newspaper-medium-r-normal--32-246-100-100-p-137-iso10646-1
-bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-adobe-standard
-bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-ascii-0
-bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-iso10646-1
-bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-iso8859-1
-bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-adobe-standard
-bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-ascii-0
-bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-iso10646-1

Or you can find a font you want using xfontsel and select all the settings you want and it will create the line you add like this:

You will just have to play around till you find one you like.

Add that line to your .Xresources file.

Rxvt*font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1

Anytime you .Xdefaults or .Xresources file(s), reload them with the following command(s) from a terminal window (requires restart of rxvt terminal if you are using it):

xrdb -load ~/.Xdefaults

or

xrdb -load ~/.Xresources

Note:  If you have a desktop like LXDE installed, these files do not load by default, but if you create ~/.xinitrc with using which ever file you want as either .Xresources (recommended) or .Xdefaults and add the following line to the file:

xrdb -load ~/.Xresources &

Then make the .xinitrc executable:

chmod +x ~/.xinitrc

Reboot, then all you have to do is launch rxvt as normal.

Screenshot from LXDE VM

Hope this helps!


How do I uninstall a DKMS package if I have deleted the dkms.conf file?

I managed to get it working. What I had to do was to restart, install the new driver, and disable paging as described here. After that, one more reboot fixed it! Now I can use the monitor!


I think you should change the location of the /home/snapshot. Your shell (or mv) is trying to do this:

mv /home/snapshot /home/snapshot

You can read about second form of the mv syntax:

mv [OPTION]... SOURCE... DIRECTORY

by typing man mv


Xubuntu. Help me build a system using Xubuntu with older laptop configured with Win/xp sp3 using only 1 of the partitions both partitions are 9.5 GB

On a machine with only 256MB or RAM, there is only one choice: Lubuntu 32 bit

Then just:

Make a back-up of your entire disk
follow the excellent official installation instructions.

Optional Remove Windows XP completely after you're familiar with Lubuntu and give the additional disk space to Lubuntu.


No IEEE b/g/n and internet connection is very slow

This is a RTL8723BU USB chipset.

You can install a driver this way. Run in a terminal:

sudo apt install git build-essential
git clone https://github.com/lwfinger/rtl8723bu.git
sudo modprobe -r rtl8xxxu

This will create a rtl8723bu directory in your Home folder.
Open Makefile in that directory and insert a # symbol before EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE.

Then run

cd rtl8723bu
sudo make install
sudo modprobe -v 8723bu

That should enable your adapter.

If you get "Required key not available" that means that you are using UEFI with Secure Boot enabled. You will need to disable Secure Boot in BIOS.

To make it permanent blacklist rtl8xxxu module by

sudo tee /etc/modprobe.d/blacklist-rtl8xxxu.conf <<< "blacklist rtl8xxxu"
sudo depmod -a
sudo update-initramfs -u

Note: You will have to run the three last commands after each kernel upgrade to re-install the driver unless you install it using DKMS to automate the process.


FTP Client for Ubuntu that allows drag'n'drop?

just use the fie manager with ftp folder, open another local folder and drag files away!


Installing tomcat from repo with Java from Oracle

Since tomcat6 depends on openjdk-6-jre, when you install tomcat6, you will also install openjdk. Afterwards, you can choose to either remove or keep it, but to make sure that tomcat6 uses Oracle JAVA, you just need to:

sudo vi /etc/default/tomcat6

and set JAVA_HOME:

JAVA_HOME=/usr/lib/jvm/java-7-oracle

If you want to keep both Oracle an OpenJDK, you can check How do I install Oracle Java JDK 7? to create the /usr/lib/jvm/.java-7-oracle.jinfo file required by update-java-alternatives. Then, switch between them with:

sudo update-java-alternatives -s java-6-openjdk
sudo update-java-alternatives -s java-7-oracle


How can I make notifications appear on a specific monitor?

For an imperfect workaround, install dconf-editor (provided by the package dconf-tools), navigate to Apps > notify-osd and change the value of multihead mode to focus-follow.

This will draw the volume notifications a little too high up on your left monitor, causing them to overlap the panel - but they will at least be drawn on your left monitor. Email/message/music/other notifications don't overlap and look fine using this method.


Dual-booting -> how to install Ubuntu by sharing separated /home partition of first linux os?

It is possible to use the same home partition for different systems, but I wouldn't really recommend it, because fedora normally has much newer versions of their software than ubuntu which could lead to problems with the configuration files when switching back and forth between bot systems. Another problem that could occur may be that the user and group ids are varying between both systems but in most cases with only one user this shouldn't be a problem, in case there are problems, I think they can be fixed by special mount options in /etc/fstab but I'm not totally sure about that.

I'd recommend using the home folder for ubuntu as it is and making symbolic links for data and configuration files you want to share between both systems. In case of thunderbird configuration files this would be for example:

ln -s /media/name-of-mount-point/username/.thunderbird /home/username/.thunderbird


Assuming you did not build OpenJDK from source, this will uninstall any package starting with openjdk:

sudo apt remove --purge "^openjdk.*"

Including any program depending on a Java runtime environment.


Cannot boot as /sbin/init is reported missing

I found the solution after some trial and error. The problem turned out to be that I had encrypted my hard drive with LUKS.

Here are the steps I followed to fix it. Some of these might have been superfluous, since I kept trying different things until it worked, but now that the error is fixed, I can't go back to test which steps were inessential.

sudo fdisk -l to learn the name of my encrypted partition; here, /dev/sda5.
sudo modprobe dm-crypt
sudo cryptsetup luksOpen /dev/sda5 crypt1. At this point, I had to enter my passphrase.
sudo vgscan --mknodes. This will yield a volume name. Mine was ubuntu-vg.
sudo vgchange -ay
sudo fsck -vy /dev/mapper/ubuntu--vg-root.

After rebooting, everything worked normally.


Install Chrome My WD 4TB hard drive doesn't work on Windows, on Ubuntu it says unclean file system

Have the file system on your external hard drive checked using the Windows drive checking tools. Once the file system is healthy, Ubuntu and MS Windows will correctly work with it.

To keep your file system in a healthy condition, make sure to unmount it explicitly each time. In Ubuntu, you can right-click the partition in the left pane of the file manager and select "Safely remove" or "Unmount". In Windows, there is an icon in the tray allowing to unmount a removable drive. Alternatively, a drive will be correctly closed when you fully shut the system down (i.e. no "stand-by" or "sleep" or "hibernate", but a full shut down.

In addition, have the partition periodically checked in Windows.

Background: ntfs is a proprietary file system of Microsoft. Although Ubuntu has very good support to work with the ntfs file system, it does not have all the tools to vigorously repair a damaged ntfs file system. Therefore, the Ubuntu operating system will refuse to mount a damaged "unclean" file system. Although it is possible in most cases to fix the partition in linux with the ntfsfix utility, it is advised to fix ntfs partitions from within MS Windows.


How to transfer photos from camera to PC over Wi-Fi (Canon S110) Xubuntu 13.10

Airnef is an open source tool that can be used to transfer files from Canon, Nikon and Sony cameras (at the time of this writing).

  Airnef is two applications - a GUI front-end and a command-line app. The GUI front-end allows you to visually select the criteria of which images to download and then launches the command-line app to perform the transfer. You can optionally use the command-line version directly to script your transfers.

Here is the download link to the 1.1 binaries but people interested in python should download the source.


How can I add an unlisted repository as my primary "Software Sources"?

In the Software-Sources pane, there are two tabs: "Software from Ubuntu" and "other software". If you

deactivate all of the check boxes for the Ubuntu repositories

and

add your repository to the "Other Software" sources list

It will all work as you plan. Assuming of course, your replacement repository is up to scratch and doesn't have any inconsistencies and so on. Make sure your repository's sane!

The Add option you are referring to is in the software centre → edit → Software Sources → Other Software → Add

(The labels could be a bit off, since I'm looking them up on my localised installation)

Note:
After you've done this, the software centre will no longer look as it does now. It will contain all of the Programs in an entry just below the "Provided by Ubuntu" label, which is activated by default. So User Experience will suffer somewhat. If you plan to do this for other users, which will regularly install random applications, it will be slightly awkward. But since Search will work as it did before, it's not a big issue.

Update:
Are you sure your ISP is providing an Ubuntu 10.10 Repository?
If so, maybe apt is already automatically choosing it for you. From what I remember, apt will at some point try to locate the fastest mirror for you.[1] If you're just trying to gain some speed, maybe this is what we programmers call "premature optimisation", a mistake. Is your current access to the repository particularly slow?

[1]: To do it manually, open the Software Sources dialogue, locate the drop down box "Download from" (should say something like "Servers for Australia"), click on "Others" and then click the button that says "Locate fastest server".


What is the default PAGER used by man pages?

From man man:

                                                  ... The pager can  be
specified  in  a number of ways, or else will fall back to a default is
used (see option -P for details).

...
-P pager, --pager=pager
       Specify  which  output pager to use.  By default, man uses pager
       -s.  This option overrides the $MANPAGER  environment  variable,
       which  in turn overrides the $PAGER environment variable.  It is
       not used in conjunction with -f or -k.

pager (/usr/bin/pager) is set using the Debian alternatives system (via /etc/alternatives/pager), and defaults to less.

$ update-alternatives --display pager
pager - auto mode
  link currently points to /bin/less
/bin/less - priority 77
  slave pager.1.gz: /usr/share/man/man1/less.1.gz
/bin/more - priority 50
  slave pager.1.gz: /usr/share/man/man1/more.1.gz
/usr/bin/pg - priority 10
  slave pager.1.gz: /usr/share/man/man1/pg.1.gz
/usr/bin/w3m - priority 25
  slave pager.1.gz: /usr/share/man/man1/w3m.1.gz
Current 'best' version is '/bin/less'.

Apparently, this particular default (using a command named pager) is a Debian-derivative trait. See Which systems have 'pager' shortcut/alias? over on Unix & Linux.


How do I bookmark sections in a PDF file converted from Libre Office?

Use Headings!

You shouldn't be using bold and italics for the sections/subsections. Bold and italics should be used to emphasize text only.

To denote the different levels of the document, use headings. When you convert to PDF they will be autobookmarked for you.

In LibreOffice:

To the left of the dropdown menu for fonts is a dropdown for applying different styles. Use heading 1 for the highest level sections, heading 2 for subsections, heading 3 for subsubsections, etc.

You can modify the style of each of these headings easily by using the "Style and Formatting" toolbar. Press F11, find the style you wish to edit, right-click and select "modify".


"no screens found" on Acer Aspire V5-122; Live Disk

You need to use the install option, make sure you connect to WiFi during installation, reboot, and install the AMD driver from the terminal. Once you boot into the installed system, it'll go into a command line. If not, use Ctrl + Alt + F1

Log in to the prompt.

Run:

wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-13-4-linux-x86.x86_64.zip
unzip amd*
## Login as root:
sudo su
## Run the drivers installer:
./amd*.run

It will then open the proprietary AMD driver installer, agree to the terms, allow it to install, then run:

sudo reboot

At the prompt. Hope this helps!

Source: http://justanyone.blogspot.com/2013/08/solved-installing-linux-on-acer-aspire.html?m=1


Internet not working on Ubunto18.04 with Virtualbox on Windows

Comment these lines-
auto enp0s3
iface enp0s3 inet dhcp
and un-comment below lines
auto lo
iface lo inet loopback
and restart network service
systemctl restart network-manager
hope this should work for you. as your system have network manager and network manager don't manage this file-
/etc/network/interfaces


How to configure policies/preferences for Chromium

Apparently the correct location for the policy on Ubuntu 20.04.2 LTS is /etc/chromium-browser/policies/managed/.
I also came across users, who reported /var/snap/chromium/current/policies/managed/ is working. The same applies to me, I'm not sure which directory would be preferable here.


How to get Logitech M305 wheel tilting to work as forward/backward?

I have one, and afaik, the best way to make use of the tilt buttons (and various other buttons on many Logitech Mice) is to use btnx, which is in the repos.

I set my M305 tilts to control+page down/up, which handles tab shifting in many applications, but you could set it to whatever keystroke in FF goes back and forward.

There is also a closed source program, HIDPoint which claims to mimic Setpoint, but I haven't really tried it.


I had modified the ~/.profile PATH variable, so the only thing I had to do is to comment out the line and log in again.

.profile

...
#export PATH=/opt/maven/apache-maven-3.3.9/bin:$PATH
...


Holding Alt key and pressing the left mouse button allows you to drag the window around - while not perfect, this may help you to reach the buttons.


Is there a way to debug wireless access point issues that was setup with hostapd?

Try stopping hostapd with service hostapd stop and starting it manually (as root) with hostapd -d /etc/hostapd/hostapd.conf. This will make hostapd startup in the foreground and print any log messages to the terminal so that you can check for any errors/problems.

There is also a suggestion that NetworkManager can get in the way when you try to setup hostapd yourself:  https://gist.github.com/Semant1ka/ee087c2bd1fbf6b0287c3307b8d4f291 . So you could quickly rule that out, i.e. run service network-manager stop and try again.

Also, on another device, you can try running iwlist <wireless interface> scan which will display all detected access-points to see if yours appears.


Is there a way to make my USB-C headphones work?

I am on Kubuntu 18.04 and connected a monitor (lg-27MU88-W) over USB-C. The monitor contains a headphone jack that appears as HDMI output in Audio preferences.

Selecting Digital Stereo (HDMI) Output makes headphones work for me.


Configure Display toggle button on ASUS laptop

For my case I use the following:

run xev and press the key to get the keycode
create file ~/.Xmodmap with content keycode 253 = XF86Display
reboot the system

now when I press the key I've got xfce4-display-settings window run (the only issue is that I need to press the key twice), because that's what in keyboard settings. To make it turn on/off display I have this script:

#!/bin/bash

file=/tmp/toggle-display-keyboard
KBBL="/sys/class/leds/asus::kbd_backlight"

if [ -e $file ]; then
    rm $file
    sudo vbetool dpms on
    [ -d $KBBL -o -f $KBBL ] && echo 3 | sudo tee $KBBL/brightness > /dev/null
else
    touch $file
    if [ -e $file ]; then
        sudo vbetool dpms off
        [ -d $KBBL -o -f $KBBL ] && echo 0 | sudo tee $KBBL/brightness > /dev/null
    fi
fi

and I've replaced the xfce4-display-settings with this script. And now I have power on/off using FnF7.


How to discard saved password for samba share in unity?

With Seahorse it is possible to edit / remove passwords for network shares.

Enter seahorse in Dash.
Select Passwords tab, click on the right arrow after the folder icon to drop down the list of passwords.
Select your share and right click -> Delete.

At the next mount attempt, you will be required to supply a new password.


How can I change the filename timestamp?

Using python :

#!/usr/bin/env python2
import glob, re, os, datetime
os.chdir('/path/to/dir')
for f in glob.glob('*.dat'):
    ini_time = datetime.datetime.strptime(re.search(r'(?<=_)(?:\d|_)+(?=.dat$)', f).group(), '%Y_%m_%d_%H%M')
    fin_time = (ini_time + datetime.timedelta(minutes=30)).strftime('%Y_%m_%d_%H%M%S')
    os.rename(f, 'Filename_' + str(fin_time) + '.dat')

os.chdir('/path/to/dir') will change the current directory to the directory containing the .dat files. Replace /path/to/dir with the actual path.
glob.glob('*.dat') will find the files ending in .dat
ini_time variable will at first cut out the date-time from the original file name using re module and then sort out which entry represents what in the string that is taken out so that we can add the required time to this
fin_time will contain the resultant time i.e. ini_time plus 30 minutes
os.rename will rename the file accordingly.

Also note that, with successive file names (differed by 30 minutes) the renamed file will overwrite the next one, hence it it is better to add the seconds to the renamed file name so that it remains safe. Otherwise you need to save the renamed files to a different directory and then replace them with the original ones later.


No sound in the Android Studio emulator on MSI P65 with Ubuntu 19.10

There is a "/" missing, otherwise its a relative link. There you go ...

sudo ln -s /run/user/1000/pulse/native /run/user/1000/snap.android-studio/pulse/


Your System Uses Optimus Graphic's so that it can switch between 2 different GPU's one Nvidia one Intel. Ubuntu and linux in general don't support GPU switching yet.

To get Ubuntu running on your machine you will need to disable one or the other GPU's in the bios then reinstall Ubuntu. Or change your grub to boot with nomodeset

to do this you need to open grub you can do this from the live cd

typing gksudo gedit /etc/default/grub in a terminal will open the grub config obviously you will need to modify this to line to where your Ubuntu is installed.

then find this line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and replace it with

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

save and close and reboot

there is a detailed guide to alternate boot options here in the Ubuntu Forums

Hope this Helps.


Switch between Wifi hotspot and wifi network

I can't think of an automatic way, but you should be able to click on the wifi symbol and choose your home wifi when you are at home which in turn will disable your hotspot.


Because the while loop is in a pipeline, it is being executed in a subshell. If you log out and log in, you will see that a local session will be affected too (not just SSH). This can be fixed by moving the list into a variable and switching to a for loop:

# Find functions in this script based on a grep search, and export them.
functions="$( grep ^'[[:alnum:]]' ~/.bash_functions |
  grep '()' |
  cut -d'(' -f1
)"

for function in $functions; do
  export -f "$function"
done
unset -v function functions # Also I added the -v flag to make this only unset variables.


Type the following commands on a terminal to get it working -

sudo add-apt-repository ppa:mjblenner/ppa-hal

sudo apt-get update

sudo apt-get install hal

sudo mkdir /etc/hal/fdi/preprobe

sudo mkdir /etc/hal/fdi/information

/usr/sbin/hald --daemon=yes --verbose=yes

rm -rf ~/.adobe


How do I install the Unity Books Lens, and how do I use it?

The Google Books Lens can currently be found in a PPA by its author, and currently have a note that These builds may have bugs, be unstable, try to eat your kitten.
To install add the PPA ppa:davidc3/books-lens (How to Add a PPA) and then install unity-books-lens from the software center.
After this, you need to log out and log back (or run unity --replace) in for the lens to show up and work correctly.
The lens uses the shortcut Super-b to show the lens.
Alternative method

sudo add-apt-repository ppa:davidc3/books-lens
sudo apt-get update && sudo apt-get install unity-lens-books


Is the Alcor AU6371 card reader supported in 12.10 64bit?

The above analysis that it was a hardware problem proved to be correct.  Thank you for your patience with me.

I replaced the original 3.5" multi-card reader with a Pluscom branded one and both SD and SDHC cards are now accessible as intended.  I do not have other types of card to try.  The controller is an Alcor AU6477.