I have no console output on boot ASROCK IMB-150

The ASROCK IMB-150 has a lvds connector on the board, with no monitor connected  it defaults to the LVDS, despite LVDS being disabled in BIOS.

Disabling the LVDS and enabling the VGA port forced the output out the correct video port.
adding consoleblank=0 solved a problem with the console not returning after the screen was blanked.

/etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="video=LVDS-1:d video=VGA-1:e consoleblank=0"

see https://www.kernel.org/doc/Documentation/fb/modedb.txt for more options


What is the use of /boot (lvm based) in partitioning?

[The information in this answer about GRUB2 and LVM is largely due to Jan's efforts; originally this answer was severely in error, and Jan deserves credit for the improvements I have made. -Eliah]

When not using LVM, a separate /boot partition is primarily useful for ensuring that the files necessary for booting are close enough to the beginning of the drive, when the / partition is itself not at the beginning of the drive. For example, you might want to put your linux-swap partition very near the beginning of the drive, since on some drives data near the beginning of the drive is potentially accessed more quickly. Then you could have a small /boot partition, followed by your linux-swap partition, followed by the / partition (then followed by other separate partitions if you have them, such as /home).

For quite some time, this has been largely unnecessary, because with newer BIOSes, you can usually boot a system whose boot files are in a partition far from the beginning of the disk. Still, there is very little disadvantage to doing so (unless you make /boot so small that it fills up--it should probably be about 250 MiB), so many people who partition manually still do this.

Older boot loaders like LILO themselves had limitations that made separate /boot partitions helpful, as Jan points out.

When using LVM, if your / partition is on the LVM, it used to be necessary to have a separate /boot partition. In such a configuration, the /boot partition is not be a partition of the LVM, but rather a partition on the disk before the LVM starts. This is because boot loaders could not read files from an LVM. So you could never boot into your system on the LVM if it didn't have a separate /boot partition (see this and this for details).

The ability to read files from an LVM was added with GRUB2, which means that all recent versions of Ubuntu (Ubuntu 9.10 Karmic Koala and later) have it. So with proper configuration you can have your entire Ubuntu system in an LVM without a separate /boot partition. See this page for details about how to configure this. (In fact, the only currently supported Ubuntu release that uses the original GRUB instead of GRUB2 is Ubuntu 8.04 LTS Server; every other non-EoL release--10.04 LTS, 10.10, 11.04, and 11.10--uses GRUB2.)

If you're using LVM but not for your Ubuntu system drive, just for a storage drive, or for some part of your system (perhaps for /home) but not /, then a separate /boot partition is not necessary, even if you are using an old (pre-GRUB2) system.

In summary, a separate /boot partition is largely a matter of personal preference for systems that do not use LVM, whereas an older system installed on an LVM might need one.


How can we intelhide or auto hide or may be even remove the bottom panel in Ubuntu 20.04 LTS?

This part is provided by the Window list GNOME Shell extension.
Ironically, it is not part of the default Ubuntu installation/experience. (In other words, you have probably enabled it some time...)
It does not seem to have an auto-/intellihide option.
You can disable it by opening the Tweaks app, going to the Extensions tab, and finding the Window list extension in the list.


Ubuntu and GitLab: Nginx and Apache, Two Network Interfaces

Apache is listening to all interfaces if you do not specify IP address.

Find Listen 80 in /etc/apache2/port.conf and modify it to Listen 192.168.0.110:80.

It is the same with nginx.


Resolutions settings not saved in Ubuntu 20.04

You can check this link.
You should work with Terminal and set some command if your setting from GUI is temporary.
You could work with xrandr and your .xprofile in your system!


HP Pavilion g6 - 64 bit high temperature

I afraid of facing the same issues.

Therefore have nt yet installed Ubuntu on HP Pavilion G6-2007 TX laptop.

It seems Ubuntu is not great while working with laptops like HP. As HP itself provides the drivers and utilities for Microsoft. They dont have support for Linus/Unix as such. Still you can visit HP Support.

I have mailed HP Support bt have nt yet recd any reply.

If any good news from HP do post it in here


Ubuntu Server 12.04 Won't Boot After Install

From the boot-repair log it was clearly shown that you didn't install Ubuntu server on Your HDD.

So try to install it again on any one of the ext4 partition.


How to get /usr/bin/env ruby to point to the correct ruby environment?

/usr/bin/env ruby should be pointing to the RVM ruby.

But lets check your setup

Check the contents of your ~/.profile, it should contain something like these 2 lines:

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM

Second, check your installed ruby version:

rvm list

this should output something like the following:

rvm rubies

=* ruby-1.9.3-p286 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

if not, try running rvm use 1.9.3 --default
When trying to run your script as root, be sure to use rvmsudo ./yourscript.rb instead of sudo ./yourscript.rb, this makes sure it sets the correct $PATH.

Let me know the outcome of the above three steps.


Memory consumption rampant when using FTP file transfer

Typically, when moving a lot of files, FTP uses the ram to store cache so that if there is a network connection stutter, it doesn't just fail your job. I would recommend using a type of compression when moving files like a Tar ball.

In regards to your tasks not shutting down, that's really odd, without having eyes on it, I wouldn't be able to say for sure, but it sounds like the job doesn't receive a kill command and or the receiving server didn't send the final "Thank you, I got it all" command to signal FTP to stop.


The below command will produce the list of files which are owned by your current kernal,

dpkg -L $(dpkg --get-selections | grep linux-image-`uname -r`)


Clear the characters before the current cursor position in Zsh

Bash and zsh work slightly different here. In zsh, CTRL + U clears the entire line instead.

In your configuration .zsh put this lines:

bindkey -e
bindkey \^U backward-kill-line

You can use

$ bindkey

to list all of your keyboard shortcuts in zsh.

BTW: in bash you will print all bindkey with the following command:

bind -P

So no cheat sheets are necessary!


Your native firefox has to use your proxy settings to work correctly. So depending upon your proxy settings, set the host and port no accordingly in Edit -> Preferences -> Advanced -> Network -> Settings

The firefox that comes bundled with tor is capable to work bypassing the proxy, so use the settings for bypassing proxy with the one that comes bundled with tor.


In Firefox on Ubuntu 16.04, is there a way to conveniently be able to right-click on bookmarks to access the context menu?

I personally find the sidebars Firefox offers (Bookmarks or History) to be quite user friendly and allow you to browse your links as a tree/list and filter them with a basic quick search bar.

They can also be shown and hidden again easily with Ctrl+B or Ctrl+H respectively, or from the View → Sidebar menu.

Right-clicking entries to get a full context menu is supported in there too, just like in the Library window.


sudo apt-get install sun-java6-fonts xfonts-75dpi xfonts-100dpi

for sun-java6-fonts you need sun java JRE, you can get it here: https://github.com/flexiondotorg/oab-java6


All packages installed as a result of being dependencies of the ones you have installed manually, are still marked as installed automatically. Run

sudo apt-get autoremove

to remove the packages not listed as "required" anymore on your system.

So, basically, let's say that the installation of package-a requires package-b, then removing package-a does not remove package-b as well. By running apt-get autoremove, it will notice that there's no requrement anymore for package-b and it will offer to remove it.

  the login screen is still different from the original ubuntu login screen

That's probably because you pulled in kdm, the KDE display manager and login screen. Remove it as well if the previous command didn't do that already:

sudo apt-get remove kdm


Error at Login Screen after changing the background of Login Screen (Ubuntu 19.04)

based on the previous comments/ chat we had..

It is observed that, your /usr/share/gnome-shell/theme/Yaru/gnome-shell.css file contents were changed..

to revert back the changes you need /usr/share/gnome-shell/theme/Yaru/gnome-shell.css file from a freshly installed Ubuntu 19.04 or Unchanged gnome-shell.css file from running Ubuntu 19.04 file..

Here is the file, https://we.tl/t-BjnNI9u9Si I have just Installed a fresh copy of Ubuntu 19.04.

once you download this file.. open it.. copy all the content..

run the below command to open the file

sudo -H gedit /usr/share/gnome-shell/theme/Yaru/gnome-shell.css

Delete all the content in the file /usr/share/gnome-shell/theme/Yaru/gnome-shell.css and paste the content which you have copied from downloaded file from the above link.

Save the file & Close..

download these two files https://we.tl/t-7Tq96QZy6n and replace /usr/share/gnome-shell/modes/ubuntu.json and /usr/share/gnome-shell/modes/yaru.json with these downloaded files.

to check which file is used for alternatives of gdm3.css file..

run sudo update-alternatives --config gdm3.css and choose the number belongs to the file /usr/share/gnome-shell/theme/Yaru/gnome-shell.css

Example:

pratap@i7-4770:~$ sudo update-alternatives --config gdm3.css
[sudo] password for pratap:
There are 2 choices for the alternative gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css).

  Selection    Path                                               Priority   Status
------------------------------------------------------------
* 0            /usr/share/gnome-shell/theme/Yaru/gnome-shell.css   15        auto mode
  1            /usr/share/gnome-shell/theme/Yaru/gnome-shell.css   15        manual mode
  2            /usr/share/gnome-shell/theme/gnome-shell.css        10        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

Now.. your login screen and unlock-screen both will have the default look as it is installed as a fresh Install of Ubuntu 19.04

to change the login-screen background refer to this link..Cannot change login screen background in 18.10


Clear the terminal (but keep the last few lines)

tput cup Y X

Move cursor to screen location X,Y (top left is 0,0)
tput ed

clear to end of screen

So:
$ tput cup 10 0 && tput ed

source


How to identify right partition from GParted

In general most of the guides you see write sdX where “sd” stands for SCSI disk. I can see in your case you have an NVMe disk, so the names as shown in Gparted would be nvme0n1XXXX
Your disk name is nvme0n1 so it depends on where you want to mount the root partition:
sudo mount /dev/nvme0n1p8 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt

Edit: before installing grub
use genfstab to fill the fstab file after mounting the partitions
genfstab / > /etc/fstab
grub-install /dev/nvme0n1

Edit: genfstab is a script in the Arch installation package and can be installed sudo apt-get install -y arch-install-scripts to help with the generation of the fstab file. however you can write your own fstab as described here


These are default locations as of Android Studio 1.0.2 and it is possible to change them by editing ..../android-studio/bin/idea.properties.

Delete the android-studio folder;
Delete the sdk folder if it is in not inside the android-studio directory;
Delete ~/.AndroidStudio, which contains config and system;
Delete ~/.android;
Delete ~/.local/share/applications/jetbrains-android-studio.desktop, if you created a shortcut using Configure->Create Desktop Entry.

Note: Add on to step#5 above
- Sometimes the icon launcher can be in one of the following locations to:

/usr/share/applications
/usr/local/share/applications

If your launcher file is in any of the first two directories, you will require root permissions to remove it.

PPAs
A deeper step of removing Android Studio completely from your Linux Distribution would also include the removal of PPAs related to Android Studio.

In Ubuntu 16.04,

Go to Software and Updates > Other Software
Scroll down the list and select to find the ones related to Android-studio
Click remove and authenticate

This  helps  stopping  updates and the very annoying error message:
The package has not been installed. I can't find the archive for it.


To stop ntpd:

sudo /etc/init.d/ntp stop

or

sudo service ntp stop

To prevent it from starting at boot:

sudo update-rc.d -f ntp remove


If you are not connected to the web; 17.04 is good.

Ubuntu 17.04 has not been patched for Meltdown, Spectre & any patches after 13-Jan-2018 which is not a problem if your machine is not connected to the web, but to protect your data if connected to the web upgrading will provide better security.

The decision is yours, but

If that data is important to you - backup!
If the data is sensitive and machine is connected to the web - stay updated & backup.
If you don't like upgrading - use LTS versions....

however if you're not connected to the web, 17.04 is all good


How to send files from Ubuntu 16.04 to iphone 4S?

I found a possible solution on this page "How to tranfer files between iPhone and Ubuntu?" . I have not tried it and cannot confirm if it works or not


Are there any tweaks for fixing the appearance of Eclipse Juno on ubuntu?

You may switch to classic Theme in the menu: Window->Preferences->General->Appearance.
This will get you back to the looks in eclipse 3.7 if you find that more appealing.


How do I integrate Songbird with the desktop?

It's possible.

Open System Info and select "Default Applications". Change the default music application to "Songbird".
Install the ubuntu-notifier addon.
Install the MPRIS addon.

Be aware that Songbird no longer supports Ubuntu, and in turn, people developing Ubuntu integration have faded away. I am not even sure if the addons listed above work anymore; if they do not, your only option is to code Ubuntu integration yourself.

As for the technical details for doing this (and these should become AskUbuntu questions in their own right):

This is how you register an music player in the sound menu.
This is how you send pop-up messages.


Mounting a WD Livebook share on raspberry Pi using fstab

I now have this working.

There were two things which I changed:

A typo in the /etc/fstab file .. the line in the question above is correct. however ...
More importantly after some testing I created a new directory /wdmirror changed its ownership to the user I log in with pi. Changed permissions to read and write as well. Using the /wdmirror directory instead of /home/pi/livebook worked fine. It may something about the home directory it doesn't like - I'm no expert so will need to read more about that.

The correct line in fstab is now:

//192.168.0.18/tv /wdmirror cifs credentials=/smb-credentials,dir_mode=0777,file_mode=0777,rw,soft,sec=ntlm,vers=1.0 0 0


Inserting data into mysql table using a script

Use a here document.

mysql [args] << EOF
USE $DB_NAME;
LOAD LOCAL DATA INFILE "$INPUT_FILE" REPLACE INTO TABLE "$TABLE" LINES TERMINATED BY '|' CHARACTER SET utf8;
QUIT;
EOF

(I suppose you don't want in fact single quotes around variables references).

Also, you might setup a ~/.my.cnf file so that non-interactive management is a bit simpler, for example:

[client]
user=root
password="some pass"


12.04.2 - Sound Blaster ZX card detected, but no sound comes out of my headphones

just a shot in the dark
you can try them one by one and test each time:

see if anything's muted?

alsamixer?

try selecting a different output device in pavucontrol?

check if your sound blaster zx card is connected properly?
(e.g. extra cables to case etc)

try plugging your headphones in another audio port (if any)?


Possible to have @ in username in Ubuntu 14.04?

It is possible to create a user with the @ sign in their name but it isn't recommended, for example, running the adduser command to add a user with an @ sign will throw this error:

adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.

Which states that you are able to force a bad username with the --force-badname flag so a command like this:

sudo adduser foo@bar --force-badname

Would create the user "foo@bar".


Rhythmbox playing an .asx internet radio file

Haven't tried Rhythmbox;

*.asx works for me in VLC

and does NOT work for me in Banshee (in Natty).

Maybe an extension (perhaps the radio extension) is needed here?

"Error opening stream - could not open stream or playlist"
 and
"File Not Found"

are the messages I get in Banshee.

EDIT

Sound doesn't work in Unity, but does in Ubuntu Classic


I finally could use the Ubuntu store after restarting the device a few times and using another WIFI in another location. This is really strange, but now I could install the "terminal" app from the store.

Anyway, I think the WiFi is not working correctly like some other basic functions, for example the screen-rotation block doesn't keep its setting: after a restart the initial orientation is kept instead.

Also very often the WiFi has no connection at all.

It is a shame, but I will send it back. Ubuntu Touch still seems not ready yet.


How to setup a ubuntu home network based on a powerful server and many outdated laptops as terminals?

If your older laptops can boot from their network cards (ie. PXE boot) then you can set up LTSP, which is fully supported in Ubuntu:

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


I'm sorry that my bug caused you difficulties Param Deshpande.  This bug has been fixed yesterday, so if you can update packages and take the latest you should then be able to cleanly uninstall all Regolith packages.  If that doesn't work and you are still stuck after Hamish Downer's suggestion, please let me know (kgilmer at gmail.com) and I'll work with you directly to fix it, or file an issue here: https://github.com/regolith-linux/regolith-desktop/issues


Removing R libraries in protected /usr/ paths

If you want to not use the packaged version of R, then you need to install your own version to a private directory where you will use it from.

It's also possible to create Ubuntu packages of additional R libraries, so that they are installed to the system, if that's what you want.


What works for me:
- Try to activate experimental function which allows to increase and decrease volume by tapping you right and left headphone (use Galaxy Wear app for that)
- Configure and restart your bluetooth service (link
- Pair device and increase volume via tapping


Running "update-grub" doesn't update GRUB!

Problem solved, will vote for this to be closed.  (Thank you for your time, bcbc.)  This was my fault.

It looks like my Windows boot configuration data got screwed up by Windows' Startup Repair - my recovery partition (at the beginning of the disk) in particular.  It had gotten the Windows 8 bootloader installed on top of it :( and there was no bootloader installed on the new 8 partition.  I thought that it was giving me an old configuration because it in effect wasn't showing any changes.  Since this is a new install, I've just wiped that 8 install and started again, but I suspect that this would be much harder on an established install.

Lesson learned: instead of lazily running Startup Repair, fix things from Command Prompt yourself!  Startup repair becomes unreliable with many Windows installs!


I installed the packages light-themes and dmz-cursor-theme for this.


Ubuntu Mate 14.04 blinking wifi light HP G60

The module name is found in:

sudo lshw -C network

Here is a redacted example from my computer:

*-network
       description: Wireless interface
       product: Centrino Advanced-N 6200
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 35
       serial: xx:94:6b:99:55:xx
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=3.16.0-31

As you can see, the driver is iwlwifi, in this example.

Now, as to whether we can control the LED, we turn to: modinfo <your_driver>, in this example iwlwifi. We see, in part:

parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)

Therefor, if we wish to change the behavior of the LED, we would add to the already existing iwlwifi.conf file:

sudo -i
echo "options iwlwifi led_mode=3"  >>  /etc/modprobe.d/iwlwifi.conf
exit

In the case of many drivers, the behavior is not manipulable; in some cases, the driver parameter is found in one of the driver's dependencies. In my example, iwlwifi also loads iwldvm, cfg80211 and mac80211. I find this in:

lsmod | grep iwl

If I saw no method to change the LED behavior in iwlwifi, I'd check every dependency. In some cases, the only option is electrical tape.

Once you know your driver, if you get stuck, post back and I'll be happy to assist.

Again, in the case of many drivers, the behavior is not manipulable.


Why is more than 3 GB of RAM not recognised when using AMD64?

This is due to the Mobile Intel 945GM Express in your laptop.

I own a Thinkpad T60, which uses the same chipset. It was one of the first northbridges from intel for the Core2Duo 64-bit CPUs. They failed in designing it.

The chipset can only theoretically address 4GB of RAM, yet also has to address other hardware (I/O memory). It reserves the upper 1GB memory range for that. The 64bit logical memory address support in the Linux kernel doesn't help, because the mainboard and northbridge only provide for a 32bit physical address bus to the CPU. And there is no workaround.
http://forums.lenovo.com/t5/T61-and-prior-T-series-ThinkPad/Thinkpad-s-and-N100-s-w-945PM-chipset-can-t-address-gt-3G-Ram/m-p/2730

  There is a theoretical option in devising memory bank switching. Yet the kernel does not support it, nor would it make sense on the x86 architecture. The i810 memory controller of the 945GM is probably too lazy for that to make sense.


How do I install Windows 7 from an iso file on a separate partition from Ubuntu?

Use the "GParted" tool available from the Ubuntu Software Center (package name is just "gparted") to create a new NTFS partition for Windows to use.  Note that it may need to be a primary partition (as opposed to a logical, or extended partition).

To create the bootable USB drive with the Windows installer, you'll find how-to's in other places across the web.  Once you're in the installer, be sure to specify the partition you created using GParted rather than letting Windows take over the entire disk.


Split CSV file based on column values and number of lines

It would be helpful if you included a mini-example with enough data for splitting at, say, 5 lines instead of 5000. However, you should be able to use something like this, in Awk:
awk -F, -v nsplit=5000 '
  NR==1 {OFS=FS; hdr=$0; next}
  (++count[$5] % nsplit == 1) {
    close(fname[$5]);
    fname[$5] = $5 "." (++ind[$5]) ".csv";
    print hdr > fname[$5]
  }
  {print > fname[$5]}
' file.csv

Testing with nsplit=2:
$ awk -F, -v nsplit=2 '
  NR==1 {OFS=FS; hdr=$0; next}
  (++count[$5] % nsplit == 1) {
    close(fname[$5]);
    fname[$5] = $5 "." (++ind[$5]) ".csv";
    print hdr > fname[$5]
  }
  {print > fname[$5]}
' file.csv

gives
$ head 0-20.?.csv 20-40.?.csv 40-60.?.csv
==> 0-20.1.csv <==
NAME,SURNAME,SEX,CITY,AGE RANK
Dick,Clarke,M,Seattle,0-20

==> 20-40.1.csv <==
NAME,SURNAME,SEX,CITY,AGE RANK
Tom,Brown,M,New York,20-40
Amy,Davies,F,Chicago,20-40

==> 20-40.2.csv <==
NAME,SURNAME,SEX,CITY,AGE RANK
Emily,Adams,F,New York,20-40

==> 40-60.1.csv <==
NAME,SURNAME,SEX,CITY,AGE RANK
Katie,Johnson,F,Boston,40-60
Harry,Smith,M,Washington,40-60


How do I install ATI Radeon HD 3200 graphics driver in 12.04 64 desktop?

You have a quite old card. If you go to the AMD page and go through the choices, you land here: http://support.amd.com/en-us/download/desktop/legacy?product=Legacy2&os=Linux%20x86_64

In the bottom, you have:

  Description: Automated installer and Display Drivers for Xorg 6.9 to
  Xserver 1.12 and Kernel version up to 3.4

So, if you want to use the proprietary AMD drivers, you have to stay with a (very old) version of the kernel and X stack. Chances are that you have a newer kernel (try with uname -a) and X stack (dpkg -l xserver-xorg); fglrx drivers do not support this configuration. So you have two possibilities:

use the open-source drivers (should work reasonably well; supported by Ubuntu; this is my personal preference)
downgrade kernel and X stack (but here you'll be on your own --- and will come the time when there will be no security support for that).

Note that this situation come from an AMD decision --- the drivers are their and they decide what to do; probably supporting legacy drivers with newer kernels has become too expensive for them.


Kubuntu 18.04 Asus Rog Strix z370-I Gaming Bluetooth Not Working

Had the same problem with fresh installed Kubuntu 18.04 and Asus Rog Strix Z370-E. It turned out that the stock 4.15 kernel in bionic has all necessary drivers and firmware shipped, but doesn't yet recognise the device (0b05:185c) as r8822be bluetooth adapter (kernel 4.17 does). Resulting in the needed firmware files not being loaded.

What I did to resolve this:

Download Kernel source

 apt-get source linux-source-4.15.0

Copy the content of "linux-4.15.0/drivers/bluetooth/" to "~/btusb-custom/" (I wanted to keep the original code for reference in case I did something wrong.)
edit ~/btusb-custom/btusb.c and add the rtl8822be hardware-IDs around line 376. Change from:

    /* Additional Realtek 8821AE Bluetooth devices */
    { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3414), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3458), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },

    /* Silicon Wave based devices */
    { USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },

    { } /* Terminating entry */

to:

    /* Additional Realtek 8821AE Bluetooth devices */
    { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3414), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3458), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK },

    /* Additional Realtek 8822BE Bluetooth devices */
    { USB_DEVICE(0x13d3, 0x3526), .driver_info = BTUSB_REALTEK },
    { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK },

    /* Silicon Wave based devices */
    { USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },

    { } /* Terminating entry */

(code taken from https://github.com/torvalds/linux/blob/master/drivers/bluetooth/btusb.c )

Also in btusb.c change line 41 from:

#define VERSION "0.8"

to:

#define VERSION "0.8-custom"

(Otherwise you would have to force dkms install.)
Create "~/btusb-custom/dkms.conf", with following content:

    PACKAGE_NAME="btusb-custom"
    PACKAGE_VERSION=0.1
    CLEAN="make clean"
    BUILT_MODULE_NAME[0]="btusb"
    DEST_MODULE_NAME[0]="btusb"
    DEST_MODULE_LOCATION[0]="/updates"
    REMAKE_INITRD=yes
    AUTOINSTALL=yes

After that, I installed my customized module with DKMS:

sudo dkms add ~/btusb_custom
sudo dkms install btusb-custom/0.1

And tested with

sudo modprobe -r btusb
sudo modprobe btusb

Viola! The bluetooth tray-icon in KDE instantly popped up.

    dmesg | grep 8822

results in

    ...
    [    3.629464] Bluetooth: hci0: rtl: examining hci_ver=07 hci_rev=000b lmp_ver=07 lmp_subver=8822
    [    3.629465] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_config.bin
    [    3.630645] Bluetooth: hci0: rtl: loading rtl_bt/rtl8822b_fw.bin
    ...

Dont forget to remove that module as soon as you get a kernel upgrade >= 4.17, you won't need it from there on.

NOTE: My kernel-development-knowledge is about zero, all of above code is copy&paste from various search results combined with some common sense - if something I wrote is bad advice, please correct me!!


Getting gnome-shell working on nvidia optimus notebook

Yeah! I figured out how to get the hardware acceleration of the Intel graphic hd 3000 to enable unity 3d and gnome-shell.

It seems that ubuntu tries to install drivers for both intel hd 3000 and nvidia-optimus card. result? a mess. X11 server can't decide what driver to use and revert to VESA.

So the solution is really simple:

apt-get remove --purge nvidia-current nvidia-common nvidia-settings xserver-xorg-video-nv

plus remove all other display driver xserver-xorg-video-* except xserver-xorg-video-intel. reboot the computer and tadan! at least you can enjoy a little acceleration!


Ubuntu version to Install for Driver compatibility

The laptop arrived and I tried Ubuntu 16.04.2 from a live USB. Everything, that I knew how to test, seemed to be working (e.g. suspend). Even the hybrid graphics gave no problem (I was prepared to boot with nouveau.modeset = 0 but didn't need to).

I do plan to upgrade the kernel whenever it gets released for the LTS version.

TLDR: 16.04.2 supports kaby lake i5-7300hq and nvidia 1050Ti.


What is the best way to install Jetty on Ubuntu?

Try with installing the followings:

sudo apt-get install jetty libjetty8-extra-java libjetty8-java libjetty-extra-java libjetty-extra libjetty-java-doc jetty8 libjetty8-java-doc libjetty-java jsvc default-jre-headless apache2-utils adduser


Serial communication between Raspberry Pi 3 and XBee S2C through SparkFun's XBee USB dongle

It's been a while since I posted this question, so I even forgot I asked such a question. The problem was about activating the XBee S2C. The only thing that I had to do is to write a 'U' and 'B' to the serial bus. After that, the device is ready to listen the data you will write to it. I mentioned this problem and the solution in our journal paper which can be accessed at https://authors.elsevier.com/a/1XK7x3sf~xzj7o

Thanks, again!


Where is 'Keyboard layout options' on Ubuntu 18.10?

Try search in Applications: Gnome Tweaks. Go to tab Keyboard & Mouse then Additional Layout Options button.

If no Tweaks in installed applications:
Go to Ubuntu Software app, search "Gnome Tweaks" and install it.
Or if you prefer console way, run this command in command-line: sudo apt install gnome-tweak-tool.


External HDD working on Ubuntu Live CD but not Ubuntu server

Answered already above. Reverted to 3.13 kernel


Matplotlib is not installing on Ubuntu 16.04

Cite:

  Unable to correct problems, you have held broken packages

Possible solution:

Run this command to remove broken packages in ubuntu.

  sudo dpkg --remove --force-remove-reinstreq package_name

after removing package update your system with command

  sudo apt-get update

Additional information:

«How to delete broken packages in ubuntu»

http://askubuntu.com/questions/525088/ddg#619956


Why are the two versions of Chromium and VLC available in Ubuntu software of different sizes?

One is traditionally distributed in deb package form and the other is distributed as a snap package

See What is the difference between snaps and Ubuntu Software Center-based apps? for details.

The differences in size

This is because of how the two distribution systems handle dependencies. Linux apps (software) depend on a lot of common files.

deb packages

With a traditional distribution system like deb, you download and install files used by multiple apps only once.  Sometimes two different apps may need different versions of one common file. This can cause conflicts. This is one of the reasons the apps in the Canonical-managed repositories for a particular version of Ubuntu, say 18.04, are not always the latest version. The advantage is small download and installed size and maximum compatibility with all the common files.

snap packages

The snap system puts all the files (common or not) in a sandbox. This makes the download and install size very big, but one app does not depend on any other files used by another app. This makes snap based apps very stable and secure. This also allows the maintainers of snap packages to update the app to the latest version without worrying about the new version of some common file breaking some other app. The advantage is always having the latest version.

Hope this helps


Dell Soundbar scratchy sound after some time on Ubuntu 18.04

Check the connection between the soundbar and device
Check for damaged the wiring, (damage may be internal so if you have a spare cable then test it out and see if the spare works)


Remapping serial ports in 14.04 using udev rules not working?

udevhas been changed, it supports NAME only for network interfaces nothing more.

From the release note, SLES11 SP1 is Version 11.1.1.10 (2012-04-17), so it should be same as Ubuntu 12.04.

   NAME
       Match the name of the node or network interface. It can be used
       once the NAME key has been set in one of the preceding rules.
   ...

   NAME
       What a network interface should be named.

       Also, as a temporary workaround, this is what a device node should
       be named; usually the kernel provides the defined node name or
       creates and removes the node before udev even receives any event.
       Changing the node name from the kernel's default creates
       inconsistencies and is not supported. If the kernel and NAME
       specify different names, an error is logged. udev is only expected
       to handle device node permissions and to create additional
       symlinks, not to change kernel-provided device node names. Instead
       of renaming a device node, SYMLINK should be used. However, symlink
       names must never conflict with device node names, as that would
       result in unpredictable behavior.

Where in Ubuntu 14.04

   NAME
       Match the name of a network interface. It can be used once the NAME
       key has been set in one of the preceding rules.
   ...
   NAME
       The name to use for a network interface. The name of a device node
       cannot be changed by udev, only additional symlinks can be created.

Note, the 1st NAME is for condition match and 2nd NAME is for action. You can compare both man pages at manpages.ubuntu.com

For complete answer, you should look for creating new symlinks instead using SYMLINK udev action.


Unable to start mongod daemon after upgrading OS from Ubuntu 16.04 to 18.04

I tried following different options :
Option1: with Ubuntu-16 mongo binaries (before option3 step2); if we are okay with libcurl3
1.  apt-get remove libcurl4
2.  apt-get install libcurl3
3.  able to start the daemon

Option2: didn’t work
1.  apt-get remove libcurl4
2.  apt-get install libcurl4
3.  /etc/init.d/mongo_db7020
/usr/bin/mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/bin/mongod)

Option3: copying mongodb 18 binaries worked
1.  apt-get remove libcurl4
2.  rsync -asvh mongoserver:/usr/bin/mongodb-linux-x86_64-ubuntu1804-4.0.4/bin/* /usr/bin/mongodb-linux-x86_64-ubuntu1604-4.0.4/bin
3.  apt-get install libcurl4
4.  able to start the daemon

Option 1 & 3 worked fine for me.


Install Ubuntu alongside Windows XP, is this possible on a 2001 system?

Yes, just choose „Install anlongside Windows“ when the installer asks you.
After installing Ubuntu you can easily access the Windows partition from within Ubuntu and transfer your files to Ubuntu.


Will malware in Windows affect Ubuntu in other partition?

Could malware feasibly go from one install to another?
To be clear, the malware running on one probably won't run on the other as is... But most malware is more than capable of downloading other malware. That's what most do —by design— to stay alive these days.
And if you can access the other partition, anything else running on your computer can.
So any malware in Windows could detect an Ubuntu install, download Ubuntu-specific malware and drop that on the Ubuntu partition.
Have I ever heard of anything doing this?
No... But I haven't heard of a lot of things.
If you're doing dodgy things in Windows (or Ubuntu) and you don't want that to affect anything else, seal it off from the world. Wrap it up in some proper virtualisation (eg VirtualBox) and disable any sort of sharing with the rest of the system.
If you're just worried about what Windows is doing, just follow the best possible security practices (don't browse dodgy sites, don't download cracked games and applications and use a self-updating browser that isn't IE) and you will probably be fine...
... Probably. There really are no certainties. Even with Ubuntu.


You can try to remove problematic list-file for package:

sudo rm -f /var/lib/dpkg/info/linux-headers-4.15.0-33*

and reinstall it with

sudo apt-get install --reinstall linux-headers-4.15.0-33
sudo apt-get install -f
sudo dpkg --configure -a

Two other packages may be reinstalled in the same way:

sudo apt-get install --reinstall libgnome-keyring-common gir1.2-gdkpixbuf-2.0:amd64


Sorry for disturbing. It was "tilda", another dropdown terminal app, which was conflicting with guake. When I hit "preferences" on right-click menu, preferences of tilda were shown. At this time, guake hadn't launched. I have recognized the "conflict of conflict" after I asked the question above.

Sorry again!


I'm not sure what you mean by "editing menu", but you can always download the .deb file from here (64bit) or here (32bit)


Unity 3D on Live CD - Only 2D on install

First off, I highly recommend that you put updates on, so open up a Terminal (Dash->Terminal) window, and type in it:

sudo apt-get update
sudo apt-get dist-upgrade

Then reboot. If you still have problems, try this in a Terminal window:

sudo apt-get install unity unity-scope-musicstores unity-common unity-place-applications unity-lens-music unity-place-files unity-lens-files unity-services unity-greeter unity-asset-pool unity-lens-applications unity-lens-gwibber ubuntu-desktop compiz compiz-core

Then reboot.


How to make menubar appear in K3B (unhide it)?

Right now I'm on a Kubuntu 11.04 machine so I don't know how much of a help my methods will be to you but you can try it anyways:

Right-click anywhere within the red boundary shown below
you should get a context-menu that gives you an option to "configure toolbar"
add "show menubar" to the toolbar from "available actions" to "current actions" and than click "okay"
from here you should be able to toggle menubar's visibility on and off as you wish (wording of items may differ on your machine)

You can also try "Ctrl + M" modifier key to toggle menubar visibility on and off, but I doubt this will work as it might only be specific to a kde workspace.


What is the difference between lvfs and vendor-directory?

KDE added support for Fwupd. LVFS comes with Fwupd.
LVFS is used for those vendors that are supported. The list of vendors can be found on the fwup website.
If your vendor is NOT on that list you need to enable vendor-directory.


No audio in Firefox, Chrome, Spotify, etc. on Ubuntu 14.04

Try to remove the adobe-flashplugin:

apt-get purge adobe-flashplugin


Please, run this test on the command line (AKA, terminal):

espeak "Hello, I am Espeak, the voice synthesizer" --stdout | paplay

That should work, but if you want the Linux voice synthesizer to read your text out loud, you should run and enable Orca (the GNOME default screen reader). It work with Evince, Firefox, LibreOffice, etc.


Will installing Cinnamon break my settings?

From looking at the installation instructions here:

How do I install the Cinnamon Desktop?

It looks like Cinnamon doesn't ship in Ubuntu, and since it's in a PPA:

Are PPA's safe to add to my system and what are some "red flags" to watch out for?

So really the answer is "maybe?". You should certainly back up your settings before attempting that though.


How can unity-panel-service be disabled?

I used this solution to disable automatically starting unity-service-panel from starting. But you should be clear, unity-panel-service is not the panel on top bar, but it provides a service so that indicators can run on the panel.

Solution:

Move the unity-panel-service file to somewhere else

sudo mv /usr/lib/unity/unity-panel-service ~

This will move the file to your home folder.
Now Logout using Ctrl-Alt-Del shortcut.
Login

The service is now disabled. If you want to verify it, run ps -u | grep unity in a terminal.

To revert the change, move the file back into the original location.


Deluge permission denied after 5 minutes of restart

the permission on the torrent look right and that is fine but what about the permission of Deluge itself?

Does deluge has execute (+x) permission on the location/media where you have your torrent-name.iso?

So, at this stage I'd say you need to check the group ownership of the location, say /mnt/. where the torrent-name.iso is located and add deluge user to that group.

This will do the work, it is not a big deal at the end and if you were just typing the headline of your question to google you will find the answer. It is the second line after yours on google search so you wouldn't need to do a hard search:-)

Good luck


How to use Apache Cordova API in Ubuntu SDK

In order to use the Cordova APIs you need to create a Cordova application as described here:

https://developer.ubuntu.com/en/apps/html-5/tutorials/cordova-camera-app-tutorial/

Cordova applications and their development flow are made so that they are as close as possible to what a Cordova developer is used to, and separate from the HTML5 application workflow from QtCreator for now.

The w3c vibration API (navigator.vibrate) should work out of the box though and this is currently a shortcoming in Oxide (our webview backend), I added a bug to track the issue here:

https://bugs.launchpad.net/oxide/+bug/1440863


Is there a utility similar to "apt-file" that can search source packages?

apt-file is a simple wrapper for downloading the Contents-<ARCH>.gz files from a given Debian repository, then unpackaging and greping through them. Contents files are generated server-side (with great computional intensity) by merging the paths of all deb packages in the archive.

The specification for Debian repositories has no location reserved for a summary of all source package paths, and no implementation (apt-ftparchive and Launchpad's homebrewed method) has any facility for generating one.

If you really, really want this functionality, you could easily compile it yourself. Make this script, make it executable, and run it. It will take forever and eight days, but its output will be equivalent to a Source-Contents file.

#!/bin/bash

for PKGNAME in $(apt-cache pkgnames); do
    apt-get source $PKGNAME >> log
    for LINE in $(find $PKGNAME-*); do
        echo "$LINE $PKGNAME"
    done
done


Can I not have two ssh at the same time?

The error message you get does not mean you cannot run two ssh clients at the same time. Rather what it means is that one of the two IP addresses you connect to is not running an ssh server.

If you were to start the two ssh clients in opposite order, you could expect the first to fail and the second to succeed.

If both IP addresses happen to be assigned to the same server, it may be that that particular server has sshd listening on only one of the two IP addresses. By default sshd will listen on all your IP addresses, but by using ListenAddress in /etc/ssh/sshd_config it is possible to restrict sshd to only listen on some of the available IPs.

If there happen to be a firewall or other middlebox between client and server, then there are no limits to how strange behavior a misconfiguration could cause. So if that's the case, you may need to learn how to debug networking problems.


What are the most used standard sub directories of root directory in Ubuntu except /var/tmp and /tmp?

/bin/, /sbin/, /usr/, /etc/ are usually used by daemons where the startup scripts, binaries and configuration files are stored. /var/ is often used for logging, /tmp/  - to store some temporary files, /proc/ to store different information about the system and running processes, /dev/ - list of hardware. And /boot/, of course, with kernel & boot loader settings.


How to stop mongod after “unkown instance” error

You could enter this command on the Terminal:

mongo host:port --eval "db.getSiblingDB('admin').shutdownServer()"

As you said you have been running 2 Mongo instances, thus they should have had 2 various ports. You should do for both.


Setting permanent export EDITOR to nano for all future sessions

A couple of easy steps should see you through:

Log into your account using ssh
Open the file ~/.bashrcwith a text editor
Add something like the following:

export EDITOR='/usr/bin/nano'

Save the file (and adjust the path to nano if you have it in a non-standard location)
Either log out and back in again or simply type:

source ~/.bashrc

And then you should be set :).

References:

How to set the default text editor in Linux


How can I fix missing bullet point characters in Word Online?

Update

I submitted a bug report and this issue has been fixed as of Firefox 68.

This issue originally affected all browsers, but Microsoft fixed it for Chrome by adding downloadable versions of the fonts to the Word Online site.

The workaround is below in case this is still broken for other browsers.

Workaround

Install the missing fonts locally

mkdir -p ~/.fonts/
wget https://source.winehq.org/git/wine.git/blob/HEAD:/fonts/symbol.ttf -O ~/.fonts/symbol.ttf
wget https://source.winehq.org/git/wine.git/blob/HEAD:/fonts/wingding.ttf -O ~/.fonts/wingding.ttf
wget https://bmaupin.github.io/askubuntu-983191-research/symbol_msfontservice.ttf -O ~/.fonts/symbol_msfontservice.ttf
wget https://bmaupin.github.io/askubuntu-983191-research/wingdings_msfontservice.ttf -O ~/.fonts/wingdings_msfontservice.ttf
fc-cache -f -v

Once that's done, the bullet points should be fixed:

Details

Examining the source of the page, here's the information on the various bullet points:

First level

Character: unicode f0b7 ()
Font: Symbol

Second level

Character: o
Font: Courier New

Third level

Character: unicode f0a7 ()
Font: Wingdings

You can find more details than you ever wanted to know about this issue here: https://github.com/bmaupin/askubuntu-983191-research#readme


Virtual Box not working after upgrade from 12.10 to 13.04

This should fix your problem, execute the following command in a terminal:

sudo /etc/init.d/vboxdrv setup


Periodic graphics issues after rebooting

Go to Unity Tweak Tool >> Launcher >> Icon Background and select "Colored Edge".

There's maybe an issue with Icon background sets to "Alternated for each workspace"


How do I install when I dont get the option to write to disk

You can burn the Ubuntu iso into a thumb drive and then setup your BIOS to boot from USB. That's what I always do. I haven't use CD/DVD for a long time.


Cannot open/run TERMINAL and software-center after PARTIAL UPGRADE prompted by Ubuntu

Your locale seems to have been corrupted somehow, and needs to be regenerated. I suggest that you open a console window (Ctrl+Alt+F1) and log in. Then try to regenerate all the locales by running

sudo locale-gen --purge


How change KDE account picture automagically?

At here

Testing with the Kubuntu 14.04.2 LTS

Writing a quick&dirty perl script:

#!/usr/bin/perl

use strict;
use warnings;

# modules - package:perlmagick
use Image::Magick;

# Picture files
my @globPictures = glob "/full/path/to/image/directory/*";

# Random file
my $randomPicture = $globPictures[rand @globPictures];

# Icon
my $newIcon;
my $iconResolution = "64x64";
my $iconOut = "$ENV{ HOME }/.face.png";

$newIcon = Image::Magick->new;
$newIcon->Read($randomPicture);
$newIcon->Resize(geometry=>$iconResolution);
$newIcon = $newIcon->Montage(geometry=>$iconResolution, background=>'transparent');
$newIcon->Write($iconOut);

# rename the .face.png to .face.icon
rename $iconOut,"$ENV{ HOME }/.face.icon";

Making the script executable.

Testing the script from konsole -> working. The ~/.face.icon (format is png - not icon) is there and the KDE menu and the KDE System Settings > Account Details has the image.

Adding the script to the  Startup and Shutdown > Add script; Run on Shutdown...

Log out - log in -> working

Log out - log in -> working

Seems to work at here.

----afterthought----

Testing with 'Restart/Turn Off Computer' option.

The script is not executed - older bug report: https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1241870

  Harald Sitter (apachelogger) wrote on 2013-10-19: #4

  May be that communication between kde-workspace and lightdm is off such that
  latter will not wait for the session to terminate but simply kill it
  when it gets the shutdown instruction (which is sent before the
  scripts are run)...

Testing with the KDM - Make KDM the default display manager

Testing with 'Restart' option - The script is executed.

---edit----

LightDM User icons:

  /var/lib/AccountsService/icons/[user name]

Kubuntu Forums: https://www.kubuntuforums.net/showthread.php?63585-How-to-get-lightdm-to-display-user-icon-when-your-is-locked-down-private

Ubuntu Forums: http://ubuntuforums.org/showthread.php?t=1969332

AskUbuntu: Where is the user's profile picture stored in Gnome 3?

Working at here when symlinking the /var/lib/AccountsService/icons/[user name] to ~/.face.icon


How can a web developer contribute to Ubuntu?

If you want to tweak the kernel, you can use C or Python, these are some of the most used programming languages in the linux world. Since you already know PHP and Javascript, I would recommend Python, since it's easy to use and easier to start with.

You don't actually need to learn another programming language, you can help the comunity in many ways:

- Ubuntu Comunity

- Comunity Teams

If you want to start developing code, you can check the Ubuntu Development, it explains the starting points, communication and overall start point for developers.

You can also check this section on Ubuntu.com to find out all the ways you can help the community.


I am unfamiliar with parallels virtual machine. Is it same type of solution like virtual machine and vmware? Do you need to create a virtual machine & disk for this installation?

If so, erase and install ubuntu will erase the virtual disc. Not the actual hard disk.


how to SSH connection between two ubuntu machines which one of them doesn't have internet?

You can try using an Ethernet cable between two devices and sharing the internet connection of your Ubuntu (via IPforwarding) with the Beagleboard.
Also make sure the SSH option is enabled in the Beagleboard! I know for the RPI you can enable it by using a HDMI cable and connecting to a TV with HDMI input support.


Libvirt doesn’t recognize the network interfaces

IIRC this part of the libvirt backend uses netcf which only can work with the pre systemd-networkd era of network configuration (read not a new 18.04).

Going forward Ubuntu switched to use udev backend instead (>=Cosmic).

You might be able to make Bionic work (unsupported) via:

apt install netcf libnetcf1 ifconfig

But that only works if you have an upgraded pre-systemd-networkd config. Therefore if you had upgraded from 16.04 with /etc/network/interfaces and this is still active then it will work. But if you have a new 18.04 install with systemd-networkd it won't be able to see those.

The problem here is the tradeoff between upgraders and new installs of 18.04 and potential regressions for one or the other group. See more details in bug https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1764314


Can't enable the proprietary drivers for Broadcom BCM43142 wireless after installing Ubuntu 14.10? Offline package required?

Do you still have the install USB or DVD? Insert it and drill down to pool > restricted > b > bcmwl and drag bcmwl-kernel-source to your desktop. Do the same with pool > main > d >dkms and drag dkms to you desktop. Then install:

cd ~/Desktop
sudo dpkg -i dkms*.deb
sudo dpkg -i bcmwl*.deb

Reboot and tell us if your wireless is working.


ACL can help:

# Create shared directory
sudo mkdir -p /media/Shared

# Give user1 and user2 rwX access to /media/Shared
sudo setfacl -m u:user1:rwX '/media/Shared'
sudo setfacl -m u:user2:rwX '/media/Shared'

# Make rwX access the default for new files and folders for both users
sudo setfacl -m default:u:user1:rwX '/media/Shared'
sudo setfacl -m default:u:user2:rwX '/media/Shared'

Change user1, user2 and /media/Shared to your needs.


How do you reinstall wine after upgrading?

Go into settings, software and updates.

Go into the other tab and make sure the appropriate repositories are enabled.


How to get rid of DOUBLE dual boot screen


Connect to Windows7 machine and print document

Hope this link will help to solve your problem. Read it carefully.


What editors are available for writing CoffeeScript?

CoffeeScript plugin for NetBeans
There is a CoffeeScript plugin for NetBeans, which should do what you want.
From the plugin page:

CoffeeScript editor features:

Just works!

(No need for Node.js)

Advanced syntax highlighting
Error checking by background compilation

(Rhino JavaScript engine is used to compile *.coffee files)

Autocompiling to a JavaScript file in the same directory

(Test it in a web browser right away)

Syntax highlighting and error checking in scripts

(HTML and PHP files)

Indentation & formatting, code folding
Option to use Node.js with coffee command for compiling. Supported platforms: Mac, Linux and new experimental support for
Windows.
Cakefile project support

To install it, first you should install NetBeans:

Navigate to the download page..
Download the Java SE version.
Make the downloaded file executable.
Run the downloaded file and install by following the instructions.
Run NetBeans.
Install the "CoffeeScript Netbeans" plugin from Tools → Plugins.


You could have logrotate rotate the log every day and only keep 1 or 2 days of logs. You can accomplish this by editing /etc/logrotate.d/pm-utils to something like this:

/var/log/pm-suspend.log {
       weekly
       rotate 4
       delaycompress
       compress
       notifempty
       missingok
}

/var/log/pm-powersave.log {
       daily
       rotate 2
       delaycompress
       compress
       notifempty
       missingok
}

This retains the default logrotate settings for pm-suspend.log, and makes two changes to the settings for pm-powersave.log:

Rotation frequency has been decreased from weekly to daily
The number of logs to keep in rotation has been decreased from 4 to 2

Now, you will have 2 pm-powersave.log files for just the last 2 days, each of which should be a more manageable size. If you find you need the logs, you can increase it to 5-7, if you don't use them, you can safely decrease it to 1.

This is just a workaround. I am in the process of looking into disabling pm-powersave logging, or at least changing the log level to something less verbose. I will report back if I find anything promising.


Where is the delete button account button in Thunderbird 17.0.8?

Follow these steps:

Go to Edit -> Account Settings -> 'Down left side' there is an "Account Actions" Button

Select 'Account Actions' -> 'Remove Account'

Note:->  If you are using Laptop then "Account Settings" window is showing as small so, down side button will not visible then maximize the window to see all options

Select 'Account Actions' button in that have "Remove Account" button to delete your Thunderbird account.

For see in graphic view Click here.


How can i move multiple files to folder with same name

In this particular case, probably the most simple way is to use the builtin for loop in a way as this:
for i in {01..08}; do echo mv *-bcF_01_bcR_${i}* bcF_01_bcR_${i}/; done

remove the echo command in order to do the actual file-system changes.


Could I recompile php after install with apt-get?

Install the various utilities needed

sudo apt-get install apache2-dev apache2 build-essential

Then compile PHP as-per instructions at http://php.net/manual/en/install.unix.apache2.php with any modifications you desire.

I'd recommend keeping the source in /usr/src so that you can recompile and relink apache anytime you apt-get update apache, (as you may have to recompile your version of PHP to ensure the versions match up).  Also make a little "install.sh" script or README there with your configure parameters for future use.

Bonus points if you want both the distro version and source version of PHP available and installed, use the --prefix=/usr/local/php5x flag on configure to install to a different directory than the system default.


Adding the command to the end of ~/.profile should do the trick (where ~ represents your home directory).

Not ~/.bashrc, which would make it run again every time a bash shell is started. In contrast, .profile is only run by interactive login shells. See man bash and man sh for more information.

Please note that this will run not just for GUI and SSH logins, but for all logins (or at least all interactive logins), including when you log on in a virtual console.


Executing a Super-user command through .bashrc

It is a bad idea, because ~/.bashrc is executed for each terminal you open.

You should consider to put the command in /etc/rc.local, or to create a custom startup script in /etc/init.d (and the corresponding symbolic links in /etc/rc*.d).


Install Ubuntu to RAID0 created from "Live" desktop

Your best option is to install a dedicated RAID controller (Newegg.com) and use it instead.  The one in the link is only $20, so it's cheap and easy.


What are the different parts of the system monitor, and what do they all do?

This is a topic that is very sparse, not just here but in general on the internet. Please take any section of this to use in an answer - but a link back is appreciated :-)
Processes Tab
Process Name

The process name is the name of the process. Multiple processes can have the same name, but different process IDs. This is useful, as it means if you want to get rid of all your nautilus windows, you can execute a simple command:
pkill nautilus

and they will all be killed.
It can be sorted Alphabetically A-Z or Z-A.

User

This is the user that owns the task. By default, you can only see your own processes. To see those run by other users, click View (top, right hand corner) and then All Processes. Then it will show those owned by other users, including root.
It can be sorted Alphabetically A-Z or Z-A.

% CPU

This shows the % of CPU being used by that process. By default it is divided by the CPU count (meaning if you have a dual core, and one process is using 100% of a single CPU, it will show up as 25%).

ID

The ID field shows the identification number of the process. This is a unique number for each process and the only way of identifying identically named processes reliably. This is useful when you want to kill a specific process, but it has others with the same name:

The process identifier (normally referred to as the PID) is a number used by most operating system to temporarily identify a process. This number may be used in a command, allowing processes to be manipulated, such as killing it altogether.

Memory

This is the amount of RAM  being used by that process.
It is always rounded to 1 decimal place, but the units vary.  If it is less than 1 GiB (1024 MiB) it displays in MiB. If it is less than 1 MiB (1024 KiB) it displays in KiB. Because of this, you never see 0.5MiB of RAM, it is always 500 KiB.

Priority
This displays the priority of the app - how much CPU it is allowed to use compared to other processes. There are 5 options - Very Low, Low, Normal, High, Very High.

An app running with higher priority gets more access to cpu time as compared to an app running with low priority. This is primarily used to keep an app (like the Arista transcoder) from eating all of the cpu time and slowing the system to a crawl, OR, for allowing one app to suck up as much CPU as it can regardless of the consequences.

Source

Status

This will either be Sleeping or Running. Most of mine are sleeping.

Virtual Memory

Virtual memory is a memory management technique that is implemented using both hardware and software. It maps memory addresses used by a program, called virtual addresses, into physical addresses in computer memory.

Source
This shows how much is being used by each process.

Resident Memory
This relates to physical memory.

Shared Memory
Amount of memory assigned to multiple processes.

Started

This is simply the time   date started. This can be useful for seeing when you started an application, but also when you booted your machine up - if you sort it, typically there will be a whole load with an identical time at the top. That is pretty close to the time you turned it on (for this to be precise for the start up time, you have to have enabled See All Processes).
This can be sorted from Most recent to Oldest and Oldest to Most recent.

Nice

This is simply the Priority, expressed in a numerical format. It has more precise control over it (-20 to 19 has 40 options, where as Very How to Very High has 5).

'nice' refers to the priority the process gets on your CPU. This is a number in the range of -20 (highest priority) to 19 (lowest). You'll probably find that most applications you're running are at nice '0', which means that they are running with normal priority and none will get preferential treatment by the scheduler over another.

Source

Command Line

This is the command that is run to start the application. Typically it will display the path to the executabe file.
For example my processes named Chrome were all launched with
/opt/google/chrome/chrome --[someoptions]

Waiting Channel

The waiting channel is the place in the Kernel where the task is currently waiting. A task has to wait for resources, which can be data or processing time. Those include network sockets, hardware, files, and so on; since most of them are just files, in Unix-like systems.

Source
What is the "Waiting Channel" of a process?

Control Group
Google doesn't know, and this is completely blank for me so...?

Preferences Window - Processes

This is the preferences window on the processes tab. It has 2 main sections, Behaviour and Information Fields (Columns)

Update interval.
This sets how often it refreshes the data. It can be anything from 1 to 100, and it is in seconds. If you enter more than 100, it goes to 100, and less than 1 goes to 1. You can also chose a decimal, to 2 decimal places. It seems to allow any decimal (i.e. 1.32 doesn't change to 1.25)

Enable Smooth Refresh
I can't see any difference, however it may be to do with the animation of the processes, i.e. they slide, rather than jump?

Alert before ending or killing a process.
When enabled, when you try to end a process, this dialogue is triggered, to prevent accidental termination.

Divide CPU usage by CPU count.
This affects the % CPU field. When this is enabled, if you have a dual core, and one process is using 100% of a single CPU, it will show up as 25%. When disabled, it will show up as 100%.
This also affects the CPU graph on the Resources tab.

Information Fields
With this you can select which fields to be shown. By default only Process Name, User, %CPU, ID, Memory and Priority are shown.

Resources Tab
CPU History

This will show you the percentage of processing power being used right now, and for the last X seconds, per processor. The amount of time is shows for is dependant on the refresh rate. Each line displayed is one of your CPUs (if you have a Multi-core Processor). Each core has it's own trace.
Below the graph are boxes. They are coloured the same as the graph lines. The number of boxes corresponds to the number of processors you have. Clicking one will bring up a colour selection window. There are some default colours, and you can create a custom one. Next to each box is the percentage of that processor that is being used.
The top of the graph will always be 100%

Memory and Swap History.

This will show you the percentage of memory and swap being used now, and for the last X seconds. The amount of time is shows for is dependant on the refresh rate. A line is displayed for the Memory (Purple - AB1852 by default) and Swap (Green - 49A835).
Below the graph are segmented circles. The amount filed corresponds to the amount used. They are coloured the same as the graph lines. Clicking one will bring up a colour selection window. There are some default colours, and you can create a custom one. Next to each cirlce is the percentage of that resource that is currently being used. The centre of the circle is always coloured in, even if it is 0%.
The top of the graph will always be 100%

Network History

This will show you the amount of data uploading and downloading right now, and for the last X seconds. The amount of time is shows for is dependant on the refresh rate. A line is displayed for the Receiving / Download (Purple - 2D7DB3 by default) and Sending / Upload (Green - EE1D00).
Below the graph are arrows. They are coloured the same as the graph lines. Clicking one will bring up a colour selection window. There are some default colours, and you can create a custom one. Next to each arrow is the amount being uploaded / downloaded right now. This can be used as a pretty accurate download speed tester. I normally run apt-get update to get a good measure. And below that is thr total Downloaded / Uploaded since the last restart.
The top of the graph will vary, from 10 KiB/s to 5 GiB/s, and the lines will never exceed it (unless they are higher than 5 GiB, which does happen when you disable and renable wired internet soemtimes. Instead, the top of the graph will increae, and the graph will be scaled apropriatly). The base is always 0 which means that if you have fast internet you can't see very accurately what it is (as the scale is large).

Preferences Window - Resources
This is the preferences window on the resources tab. It only has 1 main section, Graphs.

Update interval.
This sets how often it refreshes the data. It can be anything from 0.25 to 100, and it is in seconds. If you enter more than 100, it goes to 100, and less than 0.25 goes to 0.25. You can also chose a decimal, to 2 decimal places. It seems to allow any decimal (i.e. 1.32 doesn't change to 1.25).
This value is what determines X seconds (the amount of history displayed). The graph history can display at most 60 refreshes, so if you set it to refresh once every second, it will display history for the past 60 seconds - 60 refreshes. If however, you set it to refresh every 0.25 seconds, it will display history for the past 15 seconds - 60 refreshes. As a rule, it will display for updateinterval*60.
This value affects all the graphs.

Draw CPU chart as stacked area chart.
This affects only the CPU graph. It will change it from the line graph formatting to a filled area graph. I don't see the point, but someone who doesn't get computers says that it "Looks prettier", so it does have a use - entertainment.

Show network speed in bits.
A lot of people don't realise the difference between bits and bytes.

A bit is the basic unit of information in computing and digital communications.

Source

The byte is a unit of digital information in computing and telecommunications that most commonly consists of eight bits.

Source
So that means a 10 byte file is 80 bits. And a 1 KiB/s (1 kilobyte) internet connection is 8 Kbit/s (8 kilobits) (and useless). Because of this, you get a difference in how they are compared.
In reality, you have a MiB (Megabyte) connection, not a Mbit (Megabit). But, in order to make it look like more ISP normally advertise their speeds in Mbits. If we use my connection as an example - it is currently 680 KiB/s (which sounds quite bad, and, to be honest it is). But in Bits, it is 5.31 MBits/s. That sounds much better! (To convert between the two, just times the Mbits/s measurement by 8, then convert between KiB/MiB if necessary with * or / by 1024.
This feature lets you switch between which one you want. Most speed tests are in Mbits, so this can help confirm that.

File Systems Tab
This tab simply displays all of your file systems and details about them.

Device

This is the name of the device. When it has no name it displays as the mount point. So for example my HDD is called /dev/sda2

Directory

This is where the device can be accessed. So for example my HDD's Directory is /, and my external HDD is /media/tim/Big.

Type

This shows how it is formatted. So for example my HDD is formatted as EXT4 and my external HDD is fusebl (whatever that is).

Total

This shows the total size of the disk. So for example my HDD is 1.7 TB (Terrabytes - it used to 2 but it's been partitioned), and my external HDD is 500 GB.

Available

This shows the amount of free space on the disk. So for example my HDD has 852 GB free, and my external HDD has 71 GB

Used

This shows the amount used, and a graphical percentage (a bar with the % on it). So for example my HDD has 736 GB (46%) used, and my external HDD has 429 8GB (85%).

Preferences Window - File Systems
This has 2 sections, Behaviour and Information Fields.

Update interval.
This sets how often it refreshes the data. It can be anything from 1 to 100, and it is in seconds. If you enter more than 100, it goes to 100, and less than 1 goes to 1. You can also chose a decimal, to 2 decimal places. It seems to allow any decimal (i.e. 1.32 doesn't change to 1.25).

Show all file systems
When ticked this shows all file systems, not just the /dev/sd*X ones.

Information Fields
With this you can select which fields to be shown. By default all of them are shown.

That is a summary of all of the features of the software centre.


Not strictly a solution but a workaround that worked for the author of the question is available in this forum entry.

Please note, the author of the answer above states that this is not a long-term solution.


Try opening Firefox in safe mode. This will disable the addons, so you'll be able to see whether the bug is in Firefox, or an add-on.

If it does not crash, try enabling your add-ons one by one, to find the one which is crashing Firefox.


How to remove conflicting NVIDIA packages and unmet dependencies?

I had same problem, and solved with purge all unmet dependencies.
Here is my steps,
1. Check dependencies related with nvidia
$ dpkg -l | grep nvidia
ii  libnvidia-cfg1-440:amd64                           440.118.02-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-418                               418.165.02-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-440                               440.118.02-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-455                               455.32.00-0ubuntu1
...

2. Try pruge first package
$ sudo apt purge libnvidia-cfg1-440:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnvidia-decode-440 : Depends: libnvidia-compute-440 (= 440.118.02-0ubuntu1) but 440.100-0ubuntu0.18.04.1 is to be installed
 nvidia-driver-440 : Depends: libnvidia-compute-440 (= 440.118.02-0ubuntu1) but 440.100-0ubuntu0.18.04.1 is to be installed
                     Depends: libnvidia-cfg1-440 (= 440.118.02-0ubuntu1) but it is not going to be installed
                     Recommends: libnvidia-compute-440:i386 (= 440.118.02-0ubuntu1)
                     Recommends: libnvidia-decode-440:i386 (= 440.118.02-0ubuntu1)
                     Recommends: libnvidia-encode-440:i386 (= 440.118.02-0ubuntu1)
                     Recommends: libnvidia-ifr1-440:i386 (= 440.118.02-0ubuntu1)
                     Recommends: libnvidia-fbc1-440:i386 (= 440.118.02-0ubuntu1)
                     Recommends: libnvidia-gl-440:i386 (= 440.118.02-0ubuntu1)
 xserver-xorg-video-nvidia-440 : Depends: libnvidia-cfg1-440 (= 440.118.02-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

You can see a similar error message.
3. Add purge package which in unmet dependencies
There is libnvidia-decode-440 in error message, and tried remove that package,
$ sudo apt purge libnvidia-decode-440
...skipped same message
The following packages have unmet dependencies:
 cuda-drivers : Depends: libnvidia-decode-440 (>= 440.64.00) but it is not going to be installed
 libnvidia-encode-440 : Depends: libnvidia-decode-440 but it is not going to be installed
 nvidia-driver-440 : Depends: libnvidia-compute-440 (= 440.118.02-0ubuntu1) but 440.100-0ubuntu0.18.04.1 is to be installed
                     Depends: libnvidia-decode-440 (= 440.118.02-0ubuntu1) but it is not
...skipped same message

Unmet dependencies in error message is changed libnvidia-encode-440, So tried both package,
$ sudo apt purge libnvidia-encode-440 libnvidia-decode-440
...
The following packages have unmet dependencies:
 cuda-drivers : Depends: libnvidia-decode-440 (>= 440.64.00) but it is not going to be installed
                Depends: libnvidia-encode-440 (>= 440.64.00) but it is not going to be installed
 nvidia-driver-440 : Depends: libnvidia-compute-440 (= 440.118.02-0ubuntu1) but 440.100-0ubuntu0.18.04.1 is to be installed
                     Depends: libnvidia-decode-440 (= 440.118.02-0ubuntu1) but it is not going to be installed
                     Depends: libnvidia-encode-440 (= 440.118.02-0ubuntu1) but it is not going to be installed
...

Seems libnvidia-encode-440 libnvidia-decode-440 is solved. So I keep trying fix all unmet dependencies like this steps.
So, my final command was
$ sudo apt purge -f libnvidia-encode-440 libnvidia-decode-440 cuda-drivers nvidia-driver-440 cuda-runtime-10-1 cuda-10-1 cuda-demo-suite-10-1

and it worked. After removing nvidia and cuda package, I'm re-installing gpu drivers...
Good luck!


Primary VS. Logical Types When Using Manual Partitioning At Ubuntu Installation

Every Windows system must have its own primary partition and there only can be a maximum of 4 primary + extended partitions. Not 4 each but [number of primary partitions] + [number of extended partitions] <= 4.

So put everything which isn't a Windows system partition into an extended partition.


Ubuntu detect 4 CPUs and i have only 2 CPU's?

Ubuntu is just detecting the two logical cores per physical one the atom chip exposes because of Intel's hyper-threading technology.

The best way to disable this is through the BIOS settings, by pressingF1/F2/F10 (or the specific key for your machine should it differ) when your computer manufacturer's logo shows at boot and disabling it from there. On my netbook hyper-threading is on the 'Advanced' page of the BIOS setup. Now only two cores will be available to the OS.

If you cannot disable HT from the BIOS settings you can do so from within the OS by creating a script and having it run when the computer starts.

1. Create the script:
I got the script we'll be using here. I will add it below as well so you don't need to move between two browser tabs.

#!/bin/bash

# Be careful to not skip the space at the beginning nor the end
CPUS_TO_SKIP=" $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | cut -d '-' -f 1 | sort | uniq | tr "\r\n" "  ") "

for CPU_PATH in /sys/devices/system/cpu/cpu[0-9]*; do
    CPU="$(echo $CPU_PATH | tr -cd "0-9")"
    echo "$CPUS_TO_SKIP" | grep " $CPU " > /dev/null
    if [ $? -ne 0 ]; then
        echo 0 > $CPU_PATH/online
    fi
done

Copy this into gedit and save it somewhere as disable_ht.sh.

2. Install the script:
Open a terminal by pressing Ctrl+Alt+T and navigate to where you saved the script from earlier using cd $location. Now run the following on the file you saved:

sudo cp disable_ht.sh /usr/local/bin
sudo chmod +x /usr/local/bin/disable_ht.sh

3. Set the script to run at boot:
Hit Alt+F2 and type gksudo gedit /etc/rc.local
Make this file look like this one:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#
# Add this line right above the 'exit':
/usr/local/bin/disable_ht.sh
exit 0

Click Save and exit, and now when you boot your computer into ubuntu hyper-threading will be disabled.


submenu items in Unity launcher dynamic quicklist

I don't know how to do this with dbus but ....

You can just do this by editing .desktop files , the changes are automatically picked up. It should be simple enough to write a class to write or edit .desktop files in ~/.local/share/applications/

The launcher needs an Action line where the quicklist names are defined ,
for each of the names you need a [Desktop Action name] block which contains Name and Exec lines. Its documented in your link.

You can only go one level deep as far as i'm aware and i've not managed to add anything but launchers to the quicklist.

This has the benefit of ensuring that the menus are available after your program exits and on reboot.

Heres an example that lists various hosts as submenu items from the gnome-terminal icon.

[Desktop Entry]
Name=Terminal
Comment=Use the command line
Keywords=shell;prompt;command;commandline;
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Version=3.16.2
Categories=GNOME;GTK;System;TerminalEmulator;
StartupNotify=true
X-GNOME-SingleWindow=false
OnlyShowIn=GNOME;Unity;
Actions=New;host1;host2
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action New]
Name=New Terminal
Exec=gnome-terminal
OnlyShowIn=Unity

[Desktop Action host1]
Name=SSH to HOST1
Exec=gnome-terminal -e 'ssh host1' -t 'SSH to host1'
OnlyShowIn=Unity

[Desktop Action host2]
Name=SSH to HOST2
Exec=gnome-terminal -e 'ssh host2' -t 'SSH to host2'
OnlyShowIn=Unity


Inability to install Vuze using .tar.bz2 file

Try this:
Assuming the VuzeInstaller.tar.bz2 file was downloaded at ~/Downloads
Open a terminal.
Run into it.
tar -xjvf VuzeInstaller.tar.bz2
cd vuze
./vuze


How do I change the language of date and time on boot?

Right, the installer 'guesses' the formats setting, including date and time, based on the location you pick. You can change it by opening /etc/default/locale for editing and change the values there to your liking.


Screen turns blank except the wallpaper then comes back

This is known bug (#1735594) that was reported December 1, 2017. Numerous bug reports have been filed, but marked as duplicates.

According to a comment on bug #1741447, this PPA works, which many say fixed the issue. The main bug report also makes mention of this fix in reference to bug #1741447. Users can update their system with unsupported packages from this untrusted PPA by adding ppa:paulo-miguel-dias/pkppa to their system's Software Sources.

sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update

This solution works for me, and is probably going to become the official fix, or will be incorporated into an update, if it hasn't already. More information can be found in the given links. Be sure to restart your computer after this is installed.

If you are affected, let them know by marking you are affected at the main bug report.

Also make sure you keep up with all the latest updates, especially if you are uncertain about the above solution or if it did not work for you.


How to determine status of upstart job in bash script?

Create your own Bash function and put this in your ~/.bashrc:

check_upstart_service(){
    status $1 | grep -q "^$1 start" > /dev/null
    return $?
}

I really dislike the way of parsing output, but I don't see another obvious way. And in this case the output of <service name> start is very reliable as it's specified in the Upstart documentation.

Now you can use it like this:

if check_upstart_service ssh; then echo "running"; else echo "stopped"; fi


When is the exact date for EOL of Ubuntu 14.04 LTS?

The EOL of Ubuntu 14.04 is on the 17th of April 2019.

To obtain the EOL date of any Ubuntu distro you can use the following command

$ ubuntu-distro-info --all -yeol -f
Ubuntu 14.04 LTS "Trusty Tahr" 29

It will print the days till support ends. Here 29 days.

To install the command use

$ sudo apt install distro-info

To get the date, use e.g. the date command

$ date +"%Y-%m-%d" --date '+29 day'
2019-04-17

You can automate this with sed, e.g. to get a list of currently supported releases with their EOL date:

$ ubuntu-distro-info --supported -yeol -f | sed "s/.* \([0-9]*\)/echo -n '           &\r';date -d+\1day +%F/e"
2019-04-17 Ubuntu 14.04 LTS "Trusty Tahr" 28
2021-04-21 Ubuntu 16.04 LTS "Xenial Xerus" 763
2023-04-26 Ubuntu 18.04 LTS "Bionic Beaver" 1498
2019-07-18 Ubuntu 18.10 "Cosmic Cuttlefish" 120
2020-01-18 Ubuntu 19.04 "Disco Dingo" 304


Is there any parental block feature on Ubuntu 12.04

I think this is a great question, and shows that you care about your children.

That being said, most people using Linux will think of you as a  freedom-stifler for even suggesting such an idea.

I personally feel that if you really cared for your children you would do one of three things:

Keep the computer in a public place and watch with them, as you should a TV.
You cannot trust any site blocker more than you can trust modern TV rating systems.
Last time I watched a G-rated show with my nieces it had over 6 innuendos to sex, I lost count. And told my sister never to let them watch that show. They did not like it much any how.
Use the root account to find out what they have been doing...
Trust them.

All of these personal qualms aside, I think I have a few solutions for you:

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

http://tinyapps.org/docs/ubuntu_whitelist_blacklist_websites.html

try looking up "whitelist" and some linux terms to find info on how to effectivly control internet on a PC with linux.


Ubuntu 16.04.01 LTS 64bit - screen goes black after 30 seconds

Hi @Marian Boricean just go to settigs/power settingsand then you've got a pannel screen with many options where you can tell what to do with your screen power (ex: turn off after 30 minutes)

Hope it helps


recode can not find files when is running as a nautilus script

The problem was quotes in command!
using recode windows-1256 %F instead of recode windows-1256 "%F" solved the problem!


Try uninstalling Unity

sudo apt-get remove ubuntu-desktop
sudo apt-get autoremove

Restart, log into Gnome (assuming you've already installed it), and reinstall Ubuntu Desktop

sudo apt-get install ubuntu-desktop


About root privilages for my application

In the .desktop file you can putgksudo yourprogram or you can write a script that will launch your program using gksudo (maybe a bash script).

Edit: You can also write the portion of code that needs root separately and run it as a seperate process using gksudo when you need it.


Strange behavior with ssh on Ubuntu 12.04 server

Eventually I was able to resolve this issue.

The problem was with my DNS settings on my router. I had to disable DNS Relay on a router and manually configure DNS records. Then I forced my Ubuntu box to renew DHCP settings with the proper DNS records in place.

Its been 2 days now without any connectivity issues.


I think I accidentally wiped out my ssd while installing Ubuntu

Reading this Installation guide it does not seem like changes are made at this step and thus clicking on revert will only undo the changes that you have done on that step of installation. It seems you can safely go back and mount the partitions and check if the data is intact(which it should be).

This might tell you why you are facing this problem and maybe what to do next

If just in case if it isn't then Testdisk is a good package for file recovery(use the photorec package). But I have to warn you the files are not arranged on recovery and it's a cumbersome task.


Attempted to Repair GRUB through live USB. Has not worked, cannot get into Ubuntu

Please see the following questions and answers:

Windows 8 removes Grub as default boot manager
Dual Boot with Windows 8 UEFI - Ubuntu/GRUB Being Bypassed
Windows 8 deletes GRUB when booting

In particular, try EasyUEFI, referenced in my answer to the first question, from Windows.

If these tools don't work, please run the Boot Info Script. This will generate a file called RESULTS.txt. Post that file to a pastebin site and post the URL to your document here. This will give us more details about your configuration, which is required to base an answer on more than guesswork.


If we assume that your Lenovo 11e uses the same WIFI adapter as this Lenovo 11e:

  Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter
  [14e4:43b1] (rev 03)

Download the necessary packages dkms and bcmwl-kernel-source on Windows. see answer of Pilot6.
Reboot into Ubuntu.
Open necessary Windows partitions (drives) with a file manager. If you use Wubi, one partition is already open in the folder host in root directory.
open a Terminal.
Navigate to Windows download folder with terminal command cd. e.g. :

cd /host/Users/bcripps/Downloads
List available files with

ls
Install the downloaded packages with

sudo dpkg -i *.deb


Follow these steps to get your projects setup:

Create a users group called xamppusers:

sudo groupadd xamppusers

Add yourself to that group:

sudo usermod -a -G xamppusers $USER

Change the ownership of the /opt/lampp/htdocs folder:

sudo usermod -R root.xamppusers /opt/lampp/htdocs
sudo chmod -R 775 /opt/lampp/htdocs

Restart the system
Restart xampp:

sudo /opt/lampp/lampp start

To set up sample webpage:

Create a document in htdocs:

nano /opt/lampp/htdocs/info.php

Add this content to it:

<?php echo phpinfo(); ?>

Now in browser go to localhost/info.php, and you should see the output of that file.

With that if you have a projects you want to create that would in your case come with a folder the place that folder in htdocs like you use to on Windows and your good to go. From the xampp dashboard go to http://localhost/dashboard/howto.html for more information on running applications.


What do you want to do is not possible. At least not without making your system broken.

You can't install the Vivid version of ghostscript in Trusty. The package has some dependencies and one of them is libgs9 (= 9.15+dfsg-0ubuntu2.1). The version for libgs9 in Trusty is libgs9 (9.10~dfsg-0ubuntu10.4). Therefore, forget it. :)

Repair your system via

sudo apt-get install -f

In the meantime you could try this PPA

sudo apt-add-repository ppa:anton+/photo-video-apps
sudo apt-get update
sudo apt-get install --reinstall ghostscript


Direct Keyboard Input from Linux Laptop to Windows Pc

Synergy.

  Combine your desktop devices together in to one cohesive experience. Synergy is software for sharing your mouse and keyboard between multiple computers on your desk. It works on Windows, Mac OS X and Linux.

  Synergy combines your devices together in to one cohesive experience.

  Seamlessly move your mouse to any computer and start typing.
  Works on all major operating systems (Windows, Mac OS X, and Linux).
  Copy/paste between desktops
  Drag and drop files from one computer to another (Windows and Mac OS X).
  Network-based (IP) software KVM switch (non-video).


Update to Nautilus 3.12.2 to run dropbox

You don't need to install Nautilus 3.12.2 to run Dropbbox. I am running Nautilus 3.10.1, which is the latest release for Ubuntu 14.04 LTS (see https://launchpad.net/ubuntu/trusty/+source/nautilus and http://packages.ubuntu.com/trusty-updates/nautilus), and have no problem. You problem lies somewhere else. You might need to elaborate on what your actual problem running the Dropbox application is, for someone to help you.

(BTW you would have to build Nautilus 3.12.2 from source to install it.)


How to search for host in apache server?

For Google Chrome/Chromium, this is essentially a declined feature-request. What the browser does in this case is:

  The designed way Chrome is intended to work in this case is that when
  a user inputs something that is a potential intranet hostname, Chrome
  does a background HTTP HEAD request to that hostname, and if it gets a
  valid reply, it displays an infobar atop the search result page,
  asking "Did you mean to go to http://<hostname>/?"  If a user clicks
  that link, not only does it navigate to this hostname now, it also
  remembers that hostname in the future to avoid searching again.
  Similarly, doing any other successful typed navigation to that host
  (e.g. "hostname/" as suggested in (2)) will also cause Chrome to never
  search for that host again.

The only way to go to the page directly on the first attempt is to disable the search.

Or use workarounds:

Type http://foo or foo/ or foo:80, etc.
Switch to Firefox, which, according to the comments in that feature request, has the desired behaviour.
Use a hostname with a . in it: foo.bar


Although it is possible to do that, you should keep in mind that it will waste time looking in directories such as /sys, /proc and /dev, which you should probably leave alone.

That said, this little script does what you asked for:

selectedFile=$(sudo find / -size +450M -exec sudo -u "$USER" zenity --list --column "Found files" {} +)
if [ -n "$selectedFile" ]; then
    selectedFileDir=$(dirname "$selectedFile")
    thunar "$selectedFileDir"
fi

find is executed with privileges, but Zenity is run as your normal user (graphical applications should not be run as root). When the first line finishes you are presented the Zenity dialog. Since you need to provide the directory which contains the selected file as an argument to thunar, I extract it with dirname.


If the extension is installed via the package manager, you won't be able to download updates.  Uninstall it using the package manager, and install from the repository.

The repository doesn't update versions between releases, but security patches are backported.  If you have multiple users, you may want to use the repository as all users get the extension.  Otherwise, each user (and profile) needs to download and install their own copy.


I have the same problem here, but I'm using this workaround:

Go to "System Settings > Text Entry". Under "Input sources to use", add your keyboard layout if it still doesn't exist, then move it to the top of all layouts you already have. Or, if you prefer, you can simply delete all the layouts you don't need and keep only the one you want (that's what I've done here).

Now, open the "Startup Applications", click on Add and do the following:

  Name: KeyLaySet (This is made up. Invent your own.)
  Command: bash -c "sleep 5 && gsettings set org.gnome.desktop.input-sources current 0"
  Comment: Sets keyboard layout to default

About Name:
You can use whatever you want.

About Command:
After the system starts up, it will wait for 5 seconds and then change the keyboard layout to the default one (that one you moved to the top in the "Input sources to use" box).

Click on "Save" and then "Close". Now, every time you start Ubuntu, your keyboard layout will be properly set.

I hope it's helpful. Cheers. :)

brunces


Open up multiple app-id while using the google-chrome cli option

The following code is modified from code based on this site's example.
For your shell script
for appid in "$@"
do
    /usr/bin/google-chrome --profile-directory=Default --app-id=$appid &;
done

The command to call it
sh my-script.sh jgeocpdicgmkeemopbanhokmhcgcflmi hmjkmjkepdijhoojdojkdfohbdgmmhki
Further Ideas
Have a configuration file that houses the IDs you want to open, and use the shell script to loop through the IDs in the config as opposed to the command line arguments.


Ubuntu setting it's IPv4 address as the same adress as the feault gateway (DHCP)

I figured it out thanks to Doug Smythies comment.
The setup was running on vmware cloud, which has a default gateway for each network when you create it. I forgot to disable DHCP on it, which meant that both the pfSense router and the original default gateway were sending Ubuntu a dhcp offer. All i had to do was disable DHCP on the original default gateway and keep it on only on pfSense.


Launch a set of codes from a single bash file

It used to work, and for now will still work with the following code:
gnome-terminal --tab -e "sh -c 'cd catkin_ws ; roscore'" \
               --tab -e "sh -c 'sleep 5; source devel/setup.bash ; roslaunch hector _slam_launch tutorial.launch'"

Issue is that the Gnome developers are considering dropping the -e ("execute") option, in favor of terminating your options with --, after which a command is supplied. They, however, forgot that this change makes that you only can provide a single command. It is not anymore possible to open Gnome Terminal automatically with multiple tabs containing different processes, for example each containing a different ssh session.


Diffrence among environment/profile/bash files

/etc/environment isn't used by Bash but by read by pam-env at login time.

That's why /etc/environment doesn't allow any shell syntax but only simple

NAME=value

lines.


Is it possible to access my files on a computer without logging in?

If you have a live cd or usb (or an other computer to create one) you can use it to recover your documents: choose the try before installing option go to the file manager, under devices go into your hard drive and copy your files to a usb stick or external hdd.


Ubuntu 18.04 display bug when trying to install

You are seeing the results of inadvertently hitting the Activities button or activated something similar.  It's showing you applications that you have running on your computer.  You should exit out of everything except for the installer and only work with that program.

You only have a limited amount of resources for the installer process.  The resources are the amount of ram you have in your computer.  It's using your Ram as a hard drive as well as resources for running all the applications you are trying to run.  The applications appear to be multiple instances of the file browser (plus other things taking up the other four pieces you mentioned).

If you are totally stuck, and can't do anything else, it's the results of the computer running out of resources and being locked up.

Since it's a fresh install, just cancel everything, reboot, and start the install over.  This time choose something else and pick the partition of the failed install.  The new install will overwrite what is there and you'll be able to complete your install.

To avoid this type of problem, don't start the install until you have exited out of all the applications you have been running while in the Try Ubuntu option.


Ubuntu newb: no screen signal after install of Desktop 18.04.3

This problem went away on its own after a couple of hours, I watched a movie on Netflix for a few hours on a different PC, and when I switched my KVN-switch back to the Ubuntu machine, the problem haddisappeared. Looks like it was something related to my KVM-switch, rather than the Ubuntu install.


How to (easily) change Lubuntu applications menu icon

As I supposed, this option is already included in Lubuntu for users: fortunately, no files of the system have to be modified and no Terminal command lines are necessary to do this editing.

I found the way by myself after some trial and error. Only then I saw that it is (obviously) also precisely described on the official Lubuntu manual page, here.

First, find a good icon image you like for your Lubuntu panel and
save it in your local drive.
Then, just go on the panel and right-click on it.

Click on Configure Panel.
Go to Widgets bar.

Click on Menu or Application Menu (it depends on your Lubuntu
version).
Here a new window appears, showing the path of the image file used
as the menu icon. If you like, you can back up the default path by
saving it on a .txt file or as a screenshot, for any problems may
occur or just to recover default settings.

Now just type the new path for the main menu icon, corresponding to the path of the image you previously saved.


Where do I find absolute beginner's help on how to use Ubuntu preinstalled on my notebook?

Hi there and welcome to the Ubuntu community!

You can read this absolute beginners guide to help you out. It covers all the essential parts to get you started.


13.10 NTFS partition automounted at startup: applications cannot access all files. Manual mount works fine?

The general way to have a disk mount at startup would be to make an appropriate entry in /etc/fstab

The information that you will need for the entry can be located using findmnt while the disk is mounted, but I suspect you already have all of the required information.