How can Linux/Ubuntu be installed safely on ChromeBook?

Chrubuntu is a true dual boot and loads that way. Chrubuntu no longer works and will not be updated. It's potentially dangerous to install Chrubuntu on Chromebooks with newer models of Intel processors.

Crouton runs side by side with Chrome OS. Crouton is the better choice if you're not familiar with Ubuntu and just need a separate OS to launch some apps you need. You can run a music player app like Rhythmbox in Crouton and then switch back to ChromeOS in a matter of seconds for quick seamless browsing while it plays. Crouton also has less potential problems with glitchy device drivers for Chromebook hardware than Chrubuntu.

chrx is a currently maintained project for dual booting various Linux distributions alongside ChromeOS. The default distribution is GalliumOS. GalliumOS is derived from Xubuntu and developed specifically for compatibility and optimized performance on Chromebook hardware. The downside of chrx is that it doesn't support ARM processors and firmware updates are required or recommended for newer models of Intel processors, so it's also more dangerous than Crouton.


this is the list of Linux monitoring tools: (http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html). As you can see, there is Nagios as well. You did not specified the services you want to monitor.

If you need a log reader, you can try Splunk, which is free for small amount of log data. For web-server I would choose one of the many web-stat programs. Hope this will help. For database you need to monitor free disk space, tablespace sizes and CPU overloads. For simple fileserver I would choose just mail-ping (cron job is sending email/sms to your mobile.)

There are many levels of monitoring, so this much depend of what is the service your server offers, on SLA you need to reach and money you can spend.


How can I make the mouse cursor hide itself when typing?

You can use xbanish, it does the job.
Install it and run it simply like that:

xbanish


How to choose to install all apps at once in katoolin/Kali linux repositories interface?

Can I just press 0 for everything to be installed at once, without going into one category at a time when installing?

It probably won't work because a lot of the requested packages can't be found, so you'll have to do it the hard way.

Press 0 to install all Kali linux tools.
When you go to View Categories and then enter 0 for all, the installer will immediately return to where you were. Scroll up, and you'll see that a number of the packages can't be found. Those packages are no longer maintained or have been removed from the Kali repositories. Even with this issue, you'll still find a lot of the Kali software available for installation.
So the best option is to install Kali linux tools in a series of distinct steps. Just like if you want to install Forensic tools on your system, then choose its option from the category and then type 0 to install all forensics tools.

If you wish to go back to the main menu, type gohome in your katoolin interface. Now select the option 3 or 4 to install either the classicmenu indicator or the Kali menu. Press the y key to continue and then press Enter to start its setup.
Once you are done with installation of Kali tools using katoolin, you can quit by pressing the keyboard combination Ctrl+C and you will see the goodbye message.
shutdown requested....Goodbye...

Credit for the tutorial goes to Kashif.
Warning about updates after installing Kali linux tools
The LionSec Katoolin GitHub webpage clearly warns Katoolin users to be careful when updating software.

Before updating your system, please remove all Kali-linux repositories to avoid any kind of problem.

All kinds of problems can occur if you don't do this.
Source: How To Install Kali Linux Tools On Ubuntu 16 And CentOS 7


Does dnscache really improve the surfing speed?

Short answer: No, not really.

Long answer: In my experience dnscache is very useful when it's installed to serve a number of different machines. Like for example on a router or a network gateway. It's not as useful for a lone machine, it's very likely that everybody in the middle (software, routers, etc...) is already doing dns cache, even firefox will do local DNS caching by default.

Now your results: Google.com dns record has TTL (Time-To-Live) of 298 seconds (now and for me). They are asking any dns cache not to keep they record for more time (they change IPs quite often), so dnscache should comply to this. If you try with some other domain with higher or 0 TTLs it shouldn't discard the cache so fast.

;; ANSWER SECTION:
google.com.     298 IN  A   209.85.147.104

;; ANSWER SECTION:
yahoo.com.      16522   IN  A   72.30.2.43

This is digg output, 298 is the TTL for google, 16522 for yahoo. You can repeat your check with yahoo and expect the cache to live for near 5 hours.


Installing icewm from source does not work but apt-get works

install libgdk-pixbuf2.0-dev

sudo apt-get install libgdk-pixbuf2.0-dev

and then make again


You need to adapt /etc/X11/Xwrapper.config in order for this to work. Simply replace allowed_users=console by allowed_users=anybody and everything should work.


In uninstalling the new kernel you can simply

sudo apt-get remove <linux-image>

Or you can use synaptic package manager search for linux-image. A list of images will appear then you can delete the desired kernel.


Can't switch windows nor applications with Alt-Tab after 20.04 Update

It is also possible to use Alt + Esc
Somehow maintainers think that this is better. However I always enable Alt + Tab
Se this answer: ALT+Tab no longer switches applications since upgrade to 18.04


If you are talking about the location of the Ubuntu files within your windows file system please check your Documents/Virtual Machines path. It should save there any virtual machines you created


If you have Infinality fonts installed, try uninstallign them as there's reports around that loading them before MDM causes problems:

https://superuser.com/questions/558974/linux-mint-fails-to-start-x-automatically-after-update-but-x-still-works

MDM doesn't automatically start

I personally don't and am experiencing the same thing with 13.10 minus the network trouble.

I've only done couple things besides a plain update so it's strange others aren't having this issue, so lets compare; did you recently install Wine or install / installant Mono?

If this really is font related wine seems like the more likely suspect as I know I had problems with fonts there.


Abnormally high network traffic on Ubuntu Bionic

nethogs should satisfy your need.

Anyway

This will display programs with network activity

sudo netstat -antup | grep ESTABLISHED


Ubuntu crashing after clicking "Show Applications" button

I have (finally) found the fix for this issue through my own research. I am posting my solution in case someone, somewhere, has a similar issue.

Finding no real evidence of an issue after scouring crash logs, i determined that the issue had to be related to my graphics adapter or drivers. By researching that, I found this to be a quite common issue for Ubuntu users with a r9 390 GPU. I tried and applied many various fixes, but found one using dpm-query to solve this issue completely. It seems as though the issue is related to the power-saving settings of the card, and can be solved by changing them to high and battery settings to performance.

I have made a writeup and script to apply this upon boot on my github: https://github.com/justinlautner/Ubuntu-BlackScreen-Fix.


Xubuntu hasn't been available with Wubi since release 12.10. The lead Xubuntu developer, Pasi Lallinaho, requested that it be removed (reference):

  There has been discussion about this on the mailing list and on
  #xubuntu-devel before, but the short answer is that there wasn't enough testers and it was only more workload for the team to support
  that.

It's still available on the 12.04 Wubi

There is a way to trick Wubi into installing Xubuntu, if you don't mind a bit of work. This is not recommended, but I did it and wrote up the Howto here: http://ubuntu-with-wubi.blogspot.ca/2012/10/tricking-wubi-installing-xubuntu.html


How to disable annoying freedesktop service login sound

Open Pulseaudio Volume Control playback tab

pavucontrol -t 1

For "System Sounds" reduce volume to 0 and/or enable mute button


How can I identify the program that has written information to a log file?

Well, your pasted data has all some useful info: COMMAND=/usr/bin/env -u LANGUAGE LC_MESSAGES=C /bin/sh /tmp/tmpBHXhYV/:script:

So env was called to execute ~/tmp/tmpBHXhYV/:script:` with sh. If that file is still there, it might help you. It was not called from a TTY, so probably from within another running application.


Ubuntu 18 on Raspberry Pi 3B+ Stuck on Networking Service after Converting the Official Pi 2 image

Failed to load kernel modules is nothing to worry about.

Have you plugged your pi into working Ethernet?  From memory this is needed on first boot or it will get stuck.  Have you copied the dtb file for the 3B+?

Don't copy those kernel files, you only need to do this if you don't update the flash-kernel database.  And you only need to worry about that when you run a package update.


Please notice at the git repository that you linked:

Your son is evidently using the latest (5 or less days ago) version and you are not.
Since dkms status returned nothing, we conclude that you installed with sudo make install. Let's remove the inoperative driver, update it and reinstall:
cd ~/RTL88x2BU-Linux-Driver/
sudo make uninstall
make clean
git pull
make
sudo make install
sudo modprobe 88x2bu

After each kernel update, you must recompile:
cd ~/RTL88x2BU-Linux-Driver/
make clean
git pull
make
sudo make install
sudo modprobe 88x2bu

EDIT: As we have seen, the git pull step was ineffective as you downloaded the zip file rather than obtaining the driver by git clone.
Please do:
cd ~/RTL88x2BU-Linux-Driver-master

Or whatever the name of the previously downloaded and extracted driver file is. Next:
sudo make uninstall
cd ..
sudo rm -r RTL88x2BU-Linux-Driver-master

Now. we'll download a fresh copy with updates that drive your device. With a temporary working internet connection, please do:
wget https://github.com/RinCat/RTL88x2BU-Linux-Driver/archive/master.zip
unzip master.zip
cd RTL88x2BU-Linux-Driver-master
make
sudo make install
sudo modprobe 88x2bu


Ubuntu freezes after login(tried methods suggested)

I would have commented first but I'm not allowed, due to lack of reputation.

Please don't log in. When you get the prompt, press CTRL+ALT+F2. You should then see the terminal, where you can log in. If the login works there, you can start debugging.

I would start and check if you have disk space left:

df -h

A full home partition is often the reason for a frozen UI. But this is just one possibility. Please poke around a little bit, so you can start asking more specific questions.

Good luck :)


You may have to restart the GNOME shell in order to see the effect of the changes made.

If you're in an Xorg session, press alt+f2, then type r and press enter.

If you're in a Wayland session the above will not work, either reboot your system or log out and log in again.


Well it's quite clear. You installed a 32 bit version of Ubuntu instead of 64bit. You need to download Ubuntu again but make sure it's the 64bit (AMD64) version, mount it to USB or DVD and when I'm the installer, you might be able to upgrade it. I'm not sure, I've never tried upgrading from a 32bit arch. If not just reinstall but keep all your files (if that option is also available

Ubuntu 17.04 64bit - http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-amd64.iso.torrent


Same problem, solved using this unofficial repo
https://launchpad.net/~no1wantdthisname/+archive/ubuntu/openjdk-fontfix

before you need to install this version of tzdata

http://ftp.uk.debian.org/debian/pool/main/t/tzdata/tzdata_2016c-0%2bdeb7u1_all.deb


How to create a Ramdisk and use it with Lightread?

You can install Profile Sync Daemon. There is a tutorial: Click here


auto p1p1
    iface p1p1 inet static
    address 192.0.137.14
    netmask 255.255.255.224
    gateway 192.0.127.1

Your gateway 192.0.127.1 outside of your network. 192.0.137.14/27


Desktop crashes after upgrade to Ubuntu 20.04 "Connection to xwayland lost"

Looks like the answer was a required BIOS upgrade for the Lenovo Yoga - D3CN39WW    from Sept 2018. FreeDOS would not work as this BIOS requires a Win32 environment to be run. Install old Windows laptop hard drive and run.

https://pcsupport.lenovo.com/et/en/products/laptops-and-netbooks/yoga-series/yoga-500-15isk


Try checking to see if the module is loaded with modprobe.  Happened to me a while back same issue, just reloaded the network module


samsung new series 9, not all function keys working

In order to get the fn keys working i first had to update the BIOS ( install windows, update bios, install ubuntu again -> a lot of fun! ) because ubuntu couldn't read the dmi data it requires to load vendor specific configurations and modules. You may check if the dmi data is accessible using the "dmidecode" tool which should return a lot of data ( see other answer ):

$ sudo dmidecode

I updated the kernel to version 3.5.3 since it has some required samsung  modules compiled in to it.

I also created two keymap files and added two udev rules as described on the blog Linux And Samsung Series 9 Laptop Fn Keys. You have to replace some module specific strings ( 90X3A > 900X3C*, 90x3a > 900x3c ) as described below.

# /lib/udev/keymaps/samsung-900x3c

0x96 kbdillumup         # Fn+F8 keyboard backlit up
0x97 kbdillumdown       # Fn+F7 keyboard backlit down
0xD5 wlan               # Fn+F12 wifi on/off
0xCE prog1              # Fn+F1 performance mode (?)
0x8D prog2              # Fn+F6 battery life extender

#/lib/udev/keymaps/force-release/samsung-900x3c

# forces key release
0xCE # Fn+F8 keyboard backlit up
0x8D # Fn+F7 keyboard backlit down
0x97 # Fn+F12 wifi on/off
0x96 # Fn+F1 performance mode (?)
0xD5 # Fn+F6 battery life extender

add this line below the other samsung related lines

# /lib/udev/rules.d/95-keymap.rules
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="900X3C*", RUN+="keymap $name samsung-900x3c"

add this line below the other samsung related lines

# /lib/udev/rules.d/95-keyboard-force-release.rules
ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="900X3C*", RUN+="keyboard-force-release.sh $devpath samsung-900x3c"

The fn keys for the keyboard backlit and the screen brightness work now. The wifi and performance mode keys still don't work. You have probably to follow the instructions in the blog mentioned above.


Is it possible to list the actual commands that have been scheduled with `at`?

The command line command you are looking for is

at -c <job-number1> <job-number2> <job-number3>

This will show what you need for 1 job. You can add more job-numbers behind each other separated by a space.


where is a bug in my startup mounting application in Ubuntu 16.04?

Add this to /etc/fstab

sudo nano /etc/fstab

Add in

/dev/sdb7 /home/myuser/F vfat noauto,users,uid=1000,gid=100,dmask=027,fmask=137,utf8  0  0

Now you can mount at login with or without a script and without sudo

mount /dev/sdb7

So just run that command, mount /dev/sdb7 at login, no need for a script or anything complex.

See https://help.ubuntu.com/community/Fstab for details and other options.


Yes, 32 bit images are still available for all Ubuntu and Ubuntu "flavour" releases. (Although not necessarily for other distros based on Ubuntu - for example KDE Neon is 64 bit only.)

They are a bit harder to find than I remember, though.

You can find torrent links at Alternative downloads | Ubuntu
and regular downloads for the release you want at Ubuntu Releases.


Toshiba L955D-107 No wireless connection detected

You should use the later version of the driver tarball named:
rtl_92ce_92se_92de_8723ae_linux_mac80211_0007.0809.2012

That should fix the compile error.  After the make completes, run

 sudo make install

and then check that the two rtl8723...bin firmware files got copied to /lib/firmware/rtlwifi
Do it yourself (files are in the tarball/firmware directory) use sudo cp  to copy them.

Better yet, use 13.04, that comes with working wireless and ethernet.


On Ubuntu 20.04, a variation of the solution that @aravindha-hariharan worked for me.
gsettings get org.gnome.desktop.lockdown disable-lock-screen

For me, the value was "true" - the lock screen had been disabled.
So just run:
gsettings set org.gnome.desktop.lockdown disable-lock-screen false

And verify that it's in fact it's not disabled with:
gsettings get org.gnome.desktop.lockdown disable-lock-screen

Note that in my case I do not automatically screen lock. I only manually screen lock with Super+L.
Screenshot of Gnome Settings ➡ Privacy ➡ Lock Screen Settings:


How to set up GRUB2 password in an easy way?

According to the section on protecting entries:

  There is currently no automated method of adding users or designating menu items to be protected. The user must manually edit the GRUB 2 scripts. The GRUB 2 menu is a compilation of the inputs of several scripts. The /etc/grub.d/10_linux file is responsible for adding the default Ubuntu OS to the GRUB 2 menu. [...] The majority of these sections are devoted to editing the default scripts located in the /etc/grub.d/ folder.

And in the next section:

  The GRUB 2 menu includes selections for operating systems other than the default Ubuntu OS via the /etc/grub.d/30_os-prober script. [...] This would include other Ubuntu and Linux installations, Windows, etc.

  The 30_os-prober script looks for specific types of operating systems. The user can make the changes for all of the OS's via a single command, or individually by OS type as documented below.

So, it seems you will have to edit the files in /etc/grub.d/. At least for adding a superuser, you needn't edit one of those files, but can create a new file:

  The superuser/user information and password do not have to be contained in the /etc/grub.d/00_header file. The information can be placed in any /etc/grub.d file as long as that file is incorporated into grub.cfg. The user may prefer to enter this data into a custom file, such as /etc/grub.d/40_custom so it is not overwritten should the Grub package be updated. If placing the information in a custom file, do not include the "cat << EOF" and "EOF" lines as the content is automatically added from these files.

These paragraphs remain relevant until the official GRUB documentation says otherwise:

  The grub-mkconfig program does not yet have built-in support for generating configuration files with authentication.

(Whatever that's supposed to mean.)

Up to Ubuntu 12.04

Here are the outdated instructions for protecting menu entries:

  In /etc/grub.d/10_linux, find the following line:

printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}"

  Add --users '' :

printf "menuentry '${title}' ${CLASS} --users '' {\n" "${os}" "${version}"

For all the entries in 30_os-prober:

sudo sed 's/--class os /--class os --users /' -i /etc/grub.d/30_os-prober

Ubuntu Packages doesn't list Ubuntu 12.10, so I am not sure if 12.10 uses the old method or the new one.

Ubuntu 13.04 and later

Now, the 10_linux file uses echo instead of printf:

echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"

And the 30_os-prober file uses cat and heredocs:

# The minix entry
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE}, Multiboot)" {
EOF
# The hurd entry
cat << EOF
menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class hurd --class gnu --class os \$menuentry_id_option 'osprober-gnuhurd-/boot/gnumach.gz-false-$(grub_get_device_id "${DEVICE}")' {
EOF

So you can stick the --user "" part somewhere before the menuentry ends (before the brace opens).

Remember to backup any files you modify, and run update-grub after modification.


Size of all files of a certain extension in a directory tree

You're looking for pipes (|). They are a way of connecting multiple commands and passing the output of one command as input to another. In this case, you want to pass all the file names you find as input to du (which calculates size). However, because du expects file names and the results of find are just a list of text (yes, the text consists of file names, but du can't know that, all it sees is text), you need to use something like xargs which will take each line of text, treat it as a file name and pass that to du. Putting all this together, we get:

find . -name "*.o" | xargs du -sch

you should always quote the patterns you give to find (as I did above: "*.o"). If you don't, the shell will expand the *.o to the names of any matching files in the current directory. It worked in this case only because you had no matching files.
The -sch flags for du are documented in man du:

-c, --total
      produce a grand total
-h, --human-readable
      print sizes in human readable format (e.g., 1K 234M 2G)
-s, --summarize
      display only a total for each argument

Note, however, that this will fail for filenames containing whitespace. This is almost certainly not going to be an issue for object files, but in the future, if you also need to deal with spaces, use:

find . -name "*.o" -print0 | xargs -0 du -sch

The -print0 makes find print NULL-separated lines and the -0 makes xargs take such lines as input.

Alternatively, you can have find print the sizes itself and then sum them:

find . -name "*.o" -printf '%s\n' | awk '{c+=$1}END{print c}'

This will also get around the problem mentioned by @Serg in the comments where there are too many arguments and the command is broken into separate commands.

If you're using bash (you probably are), there's a simpler way:

shopt -s globstar
du -sch **/*.o

The shopt globstar command makes ** match all files and  or more subdirectories. After enabling it, **/*.o will match all files (and directories) whose name ends in .o, so we can pass that directly to du.

Note that, unlike the find approach, this won't match hidden files (those whose name starts with a .). To match those as well, do:

shopt -s dotglob globstar
du -sch **/*.o


(chrome) Set default handler for magnet links ?

From this question

  xdg-open's config via gconf-editor didn't do anything to resolve the issue: since as of Natty the file-open functionality is handled by gvfs-open, which doesn't use gconf settings. Rather, gvfs-open looks at the ".desktop" files

So here some general instruction, they should work for every client ( just wisely change tixati with what is required by you )

1. Check the tixati.desktop file

Actually tixati.desktop looks fine so you can skip this step

sudo gedit /usr/share/applications/tixati.desktop

Here we need to check that:

Exec=tixati %U contains the %U
MimeType contains at least these 2 entry MimeType=application/x-bittorrent;x-scheme-handler/magnet;

If not fix it and the run sudo update-desktop-database

2. set default application for Magnet

I suggest to uninstall transmission anyway this command should set tixati as default:

xdg-mime default tixati.desktop x-scheme-handler/magnet


Visual sorting of files by name in ~/Documents

Go to ~/Downloads or ~/Downloads folder in Files application. Click the button next to the search button at the top right corner of the window. You'll get various sorting options including sorting by name.


unable to update ubuntu Docker container using apt-get update

the problem was with Internet connection, as mine connection is at enterprise level and because of that It was unable to execute apt-get update command.
Solution worked for me is :

find your DNS server address using cat /etc/resolv.conf
Open Docker confg file and uncomment DOCKER_OPTS and add your DNS server over there

Docker config file : sudo gedit /etc/default/docker


Why on installing windows software on playonlinux brackets gets uninstalled?

Brackets gets uninstalled every time you install Windows software on PlayOnLinux because of a permissions issue that occurs because Brackets snap package was not installed correctly to begin with. The correct commands to install the Brackets snap package are:

sudo apt install snapd
sudo snap install brackets --classic

Note that a snap in classic confinement behaves as a traditionally packaged application with full access to the system.

If Brackets fails to open again after installing Windows software on PlayOnLinux, run the following commands:

sudo apt update
sudo apt upgrade
sudo snap refresh
sudo snap revert brackets
sudo snap refresh brackets
setsid brackets


its happen because you did not install Kubuntu with propre way. reinstall kubuntu again with bugfree proper disk.


What issues should I be aware of with the Intel Graphics Update Tool for Linux?

Without going far down the path of "why" it has been my experience, every time I have installed the proprietary Intel graphics drivers directly, I have regretted it. One reason is during Ubuntu upgrades there have always been issues for me, whether simple (e.g. x.04 -> .10) or major (16.x -> 17.x)

Moreover, removing the package(s) has been a nightmare. If you opt to give them a try I highly recommend making a backup of your system so that rolling back is a simple restore.


Firstly, if you installed Ubuntu on the same partition of Windows, you'll probably lose Ubuntu since you'll format that partition to remove Windows. Else if Ubuntu is installed to a different partition then probably nothing will happen. To change storage size you could use software to do that such as rescue disc, erd, etc.


I've asked the same question on unix stackexchange: https://unix.stackexchange.com/questions/278923/mousewheel-touchpad-scrolling-in-browsers and what I found out after a little bit of exploration is this:

1) Feature is called "Coasting speed"
2) to disable it you can use:

xinput --set-prop --type=float "<your device>" "Synaptics Coasting Speed" 0 0

to list devices you can use:

xinput list

Good luck! :-)


How to generate deb files with source code without makefile

You should read from Debian Wiki .
https://wiki.debian.org/HowToPackageForDebian

It is very known the GNU autotools, but it is not for generating .deb.


You can use Ondrej's Launchpad PPA:

sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get dist-upgrade

I found this answer on DigitalOceans community support site:

  Don't forget that after installing the new version of Apache, you need
  to activate the module manually:

sudo a2enmod http2

  In your Apache config file, you can either add
  global support:

Protocols h2 h2c http/1.1

  Or you can activate it for individual,
  secure vhosts:

Protocols h2 http/1.1

  Restart Apache and you're all set. You can test
  your server at https://tools.keycdn.com/http2-test.


Installation stuck on "Initializing Required Components" when trying to install Adobe Audition 3.0

The first thing to do with any Wine trouble is to look up the application on appdb.winehq.org. It is a really good, community-run database of Windows applications and their compatibility with Wine. From the page on Adobe Audition 3, and the trial version, we can see that people have reported it partly working with Ubuntu 10.04, but there is some extra work involved to reach that point. There is a link to an article describing the extra steps to run Audition in Ubuntu 10.04, but it's a little outdated at this point. This should be a little easier now.

Open the Terminal application, and try the following…

Make sure winetricks is installed:

sudo apt-get install winetricks

Now, run the following command:

winetricks corefonts vcrun6 mfc40 gdiplus

(You can also do that by opening Winetricks from the dash and selecting the components under "Install a windows DLL or component", but the command is a little quicker to deal with).

Try to run Adobe Audition, now. If it still doesn't work, open the "Configure Wine" application, or type winecfg in the terminal. First, in the Applications tab, select the exe file for Audition. (You will have to walk through the file system). Now click the Libraries tab, and add an override for gdiplus.dll.


Where is your sources.list gone?

create the file/etc/apt/sources.list with following content.

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

Then update package information from all configured sources with

sudo apt update

sudo apt install duplicity


Cannot set a different database directory for mysql ( Errcode: 13 - Permission denied)

According to this site, you need to edit some configuration and run a few commands to complete the setup.

Add the following to /etc/apparmor.d/usr.sbin.mysqld:

/NEWSQLPATH/ r,
/NEWSQLPATH/** rwk,

Then run:

sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld
sudo /etc/init.d/apparmor reload

You can also add this to /etc/apparmor.d/tunables/alias:

alias /var/lib/mysql/ -> /newpath/,

(The commas at the ends of the lines are important.)


How to fix 3D Acceleration for Vmware Workstation 9?

Add the following to the .vmx file of the VM

mks.gl.allowBlacklistedDrivers = "TRUE"

Next, install the Mesa-libtxc_dxtn1 (aka the S3 texture compression), this will probably called something be different since you are on Ubuntu and I'm using OpenSUSE 12.2.

Chances are this will crash your VM like it does to mine and only a reboot will fix it. Trying nomodeset from the boot-loader then uses the Nvidia graphics (I think - my CPU usage still rockets with glxspheres) which then WON'T crash your VM.

FYI - I have tried this but I'm afraid 3D acceleration support with Bumblebee is totally shite on Linux.


Corrupted video files after moving to sd card

These settings are not persistent. A reboot will reset to the default value of 0, which you can verify with:
cat /proc/sys/vm/dirty_background_bytes
cat /proc/sys/vm/dirty_bytes

Trying to reset these values to their default of 0 has no effect. As of kernel 4.4, doing so fails with EINVAL.


Your computer name (hostname) is the name you see after the @ sign.

Your username (userid) is the name you see before the @ sign.

You ask for how to change your computer name.  But you indicate a different username for your prompt.

To make your prompt look the way you have indicated in your question.  First log out.  Then log into the console with this keyboard shortcut: Ctl+Alt+F2.

You can't change your userID while you are logged in with it.  So you will have to logout.  Create 9r user a different userID to do this.

Log into the console and follow these step.  At the console prompt type this and press ENTER:

Create a new user:

$ sudo useradd tempuser
$ sudo adduser tempuser sudo
$ sudo passwd tempuser
$ exit

Now log in as the "different user".  From that account run these commands.  Replace the "newUsername" and "oldUsername" with "carlos" and "hamburg".  In the commands below the -l changes the login ID.  the -c changes the way it looks on the login screen.

$ sudo usermod -l newUsername oldUsername
$ sudo usermod -c newUsername newUsername
$ exit

Now hit the keyboard shortcut: Ctl+Alt+F7 to go back to your normal login screen.

Now login by the new changed name. When you log in your prompt will look
the way you have specified in your Question.

Once logged in your can use System Settings -> User Accounts to remove the tempuser id.


Try to check you nVidia card with

sudo lspci -H 1

or

sudo lspci -H 2

If this doesn't work, try to go into sleep mode and then wake up, and execute the above commands. If you still don't see you nVidia card, then the last option is tochange BIOS settings. If you see your nVidia card, then it may be not easy to make it working. Loading modules with "modprobe nvidia" didn't work for me and I will need to try to make advanced PCI resources tuning.


Making master pdf editor default for .pdf files

Add %f at last  in Exec of Desktop file (and put it in /usr/share/applications). So-that it is available as open-with-other-applications.

If MasterPdfEditor.desktop is placed in /usr/share/applications, then

Open sudo gedit /etc/gnome/defaults.list

And Replace:-

application/pdf=evince.desktop with application/pdf=MasterPdfEditor.desktop

This will set Master Pdf Editor as default for pdf files.

For instance, You can replace all evince.desktop with MasterPdfEditor.desktop by Ctrl+H.


Try installing the Pulse Audio Volume Control:
https://www.howtoforge.com/tutorial/advanced-audio-control-on-linux/
It has a include left/right channel setting and may allow you to fix what happened.


In development based on Quickly, why do codes start with "from gi.repository import Gtk"?

from gi.repository import Gtk uses the new PyGObject instead of the older PyGTK that is used with import gtk.


You could run 'sudo -i' to get a root-shell and then do all your copying from there.
If you want to use nautilus you could try:

gksu "nautilus --no-desktop"

from a terminal or the run dialog. That will start nautilus as the root user.


As documented in netplan(5):

ap is only supported with NetworkManager.

You must specify renderer: NetworkManager and install the network-manager package to put a wifi interface in ap mode with netplan, because as stated, this is not implemented with the networkd backend.


What do I do after I have installed a RTL8814AU driver?

You device is RTL8814AU. You can install a driver from git.

Connect to internet by another way and run:

sudo apt update
sudo apt install git dkms
git clone https://github.com/ScrambledAuroras/rtl8814AU.git
cd rtl8814AU
sudo ./dkms-install.sh


Don't forget that script executed by Cron are ran in an environment with a limited PATH variable.
This means that on the console when you test your script, the console shell will find sendmail without problem. But when ran from Cron, sendmail is not found.

Best practise when writing scripts for Cron is to put the full path to access the command you want to run, just to be sure.

Usually, the sendmail binary is install under /usr/sbin, a path which is not part of the directories looked up by Cron by default. So I would advise to :

Look for the place of sendmail binary (locate sendmail or find / -type f -name sendmail) if locate is not installed)
Write down the full path to execute sendmail in your script


How to set mouse wheel tilt click support up?

Here is how to do it:

Install xbindkeys: sudo apt-get install xbindkeys
Install xte: sudo apt-get install xautomation

create the xbindkeys config file xbindkeys --defaults > $HOME/.xbindkeysrc

now run xev, put your mouse in the box and click the button you want to map.
You should get something like

  ButtonRelease event, serial 41, synthetic NO, window 0x4400001,
    root 0x2e9, subw 0x4400002, time 21579213, (28,34), root:(818,86),
    state 0x110, button 1, same_screen YES

In this case "button 1" is the number of the button we want to map.
Now we need to edit xbindkeys config file.
gedit $HOME/.xbindkeysrc
Scroll to the bottom of the file and create a new line.
If you want to bind 'button 1' to the 'home' key type:

"xte 'keydown Home' 'keyup Home'"
b:1

Now make xbindkeys start on startup.  Open startup applications. Click 'Add' put xbindkeys in the 'name' field and  /usr/bin/xbindkeys in the 'Command Field'.

Restart the computer.

That will bind 'button 1' to the 'home' key.


Xdebug is in Official Ubuntu Repository

When you install a package by using compiling methods it is too difficult. You should have sound knowledge in computing.

Ubuntu is not such difficult. In windows, when you right click on .exe file and select Run, you can install a application easily. Likewise in Ubuntu the equivalent for the .exe are .deb. If you right click a .deb file and select Open with Software Center, you can install the Software easily.

In Ubuntu, you don't need to find applications (.deb) files everywhere in internet. Most of the trusted Freely available applications are in a "Pool" called Ubuntu Official Repository". When you request for install needed software, Ubuntu will download and install automatically ( If that software is in that pool). You need to do this request From the application Software Center. You have to open the application and search in it's search bar for the needed Software, select it and click on Install( Software Center has a copy of the "pool". So it knows available applications).

Other method to request for the needed applications to be install is run a command in Terminal. Command is

sudo apt-get install [PACKAGE1] ]PACKAGE2] ...

This will download the requested packages (.deb files) from the pool and install by itself. So it is so easy to install Applications in Ubuntu.

Xdebug is in the "Pool" or the Official Ubuntu Repository. You have to install following packages to get it.

php5-xdebug debhelper php5-dev binutils dh-apparmor dpkg dpkg-dev file html2text man-db perl po-debconf dh-make autoconf automake libssl-dev libtool php5-common shtool ucf libc6 php5-cli

So to install them, you need to enter the command :

sudo apt-get install php5-xdebug debhelper php5-dev binutils dh-apparmor dpkg dpkg-dev file html2text man-db perl po-debconf dh-make autoconf automake libssl-dev libtool php5-common shtool ucf libc6 php5-cli

Or you can Open the software Center and search and select each package and click on install.

But use the command is so easy. You just need to right click and Copy this command and then right click on terminal prompt and Paste. Then press Enter.

To configure Xdebug to work with php5 you need to do the followings:

In Terminal run:

 gksudo gedit /etc/php/apache2/php.ini

In the resulting empty document add following lines: *

zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000

Save and Close the file.

Then run:

sudo /etc/init.d/apache2 restart

This is only for Ubuntu 13.10. For 13.04 zend_extension= line should be zend_extension="/usr/lib/php5/20100525/xdebug.so". For 12.10 zend_extension="/usr/lib/php5/20100525/xdebug.so" and for 12.04 zend_extension="/usr/lib/php5/20090626/xdebug.so".


I am trying to install a compressed package ending in .tar.gz and I am getting an error saying that it is not in the right format,

Try checking the file type with the following command:

file matlab_r2011b.tar.gz

If it tells you that it is a tar archive rather than gzip compressed data, then it is possible that the file got decompressed while being downloaded (possibly due to a faulty web server configuration on the other end).  If that is the case, just rename the archive and try again:

mv matlab_r2011b.tar.gz matlab_r2011b.tar
tar xvf matlab_r2011b.tar


Where can I find checksums to verify the download of 12.04 alternate amd 64

You can view Ubuntu 12.04 Checksums in here

http://releases.ubuntu.com/precise/

And for other releases in here

http://releases.ubuntu.com


See man test for details. -e returns true if the file or directory exists, and false if it doesn't.


You removed all certificates yourself when you ran sudo rm -rf /etc/ssl/certs/*. That broke your system. One thing you can do to fix this is to reinstall the package they come from:

sudo apt-get install --reinstall ca-certificates

This should be relatively safe. If that doesn't work, you may need to purge the package out and reinstall it but don't attempt this if you currently have broken packages.

sudo apt-get -f install
# stop if you saw any errors

sudo dpkg --purge --force-depends ca-certificates
sudo apt-get -f install


Installing Windows as dual boot on Linux computer

Thank you for ask @ironlors. Make a backup for securely.
Now, you can install windows after ubuntu too. The inconvenient is execute grub recover after windows instalation while the other hand you doesn't need.
Steps:
1 - use your preferred partition manager like gparted or ubuntu-disks to create a place for Windows
2 - install windows in this partition using a CD, pen-drive, etc..
3 - when it finish you will see there are no way to boot at Ubuntu. Then it's time to grub recovery. I suggest two ways:
3.1 using windows https://itsfoss.com/no-grub-windows-linux/
3.2 using a live Ubuntu https://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/amp/

I'm using my laptop like this . But, after ubuntu I rarely up windows.
I hope you have success. If you need something just ask and up vote if have helped :D


20.04 on external monitor (2560x1600) extremely slow

I have a Thinkpad W520 with freshly installed U20.04. I had a similar problem when I tried to connect my WQHD display through DisplayPort. Even though the NVIDIA driver was installed, it somehow could not be activated. If the NVIDIA driver is properly activated and you run

$ nvidia-settings

then you should see something like this:

If you don't see the options on the left, then probably your NVIDIA driver is not properly activated. I purged the driver using the command:

$ sudo apt remove --purge nvidia-kernel-common-390

and then reinstalled it using the "Additional Drivers" utility of the "Software & Updates" app. After I restarted the computer the NVIDIA driver got properly activated and the NVIDIA settings also showed the options as it should.


No way to have Dutch(Belgian) [edit:'Belgian'] keyboard layout working on 20.04

To set AZERTY run sudo setxkbmap be in a terminal
If the above doesn't set the keyboard properly then try sudo setxkbmap fr
sudo loadkeys xx (xx=be or fr)


Will I be able to upgrade to 13.04 from 12.10 with a Wubi installation?

Wubi instalations are not required but are working well. (You just notice that I/O disk performance is bad).
With the support dropped, you cannot instal it. You can however try and upgrade from 12.10 after having verified that there were no changes in grub/kernel versions from 12.10 to 13.04.
My advice is to keep a 12.04 LTS w/ Wubi if you want to keep that configuration.


Ubuntu 18.04: How to install Ruby1.9.1(ruby1.9.1-full, rubygems1.9.1, ruby1.9.1-dev)?

According to search on http://packages.ubuntu.com Ruby 1.9.1 is available only for Ubuntu 14.04 LTS.

According to official Ruby Maintenance Branches page 1.9.3 (as also 2.0.0, 2.1, 2.2) is EOL.

Consider to install supported version of Ruby 2.5.1 for your Ubuntu 18.04 LTS:

sudo apt install ruby2.5 ruby2.5-dev

If you really need to install 1.9.1 - then compile it manually. But make sure that you want to use end-of-life and insecure version.


Internet does not work over wired connection after removing pppoe configs

I solved this myself. Not sure what happened to router or my ethernet config, but it now don't work when router ISP port uses same MAC address as my ethernet port does. So I changed MAC address of ethernet, and now internet resourses are available. Can't change MAC address of ISP port, since provider binded it and I can't reset binded MAC addresses during this month due to provider's limitation.

BTW, my router is Keenetic Giga II, firmware v2.04(AAFS.7)C5.

From lspci -knn | grep "Eth\|Net" -A2 :

Ethernet controller [0200]: Qualcomm Atheros AR8161 Gigabit Ethernet [1969:1091] (rev 10)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:10e9]
Kernel driver in use: alx


Text becomes unreadable after high memory usage

An old Laptop with integrated Intel graphics has to split conventional memory into OS usage and video ram. There is the possibility that Unity is buggy in low video ram conditions and that the high OS ram usage is a byproduct of the same origin: Too many applications at once.

Try to increase video ram in the BIOS settings. If this does not help, you can still switch to xfce, should not hurt too much.


Can't boot after install, PXE-E61 error on a Lenovo z570

Okay, much headdesk later, Ubuntu 64 12.04 is running. For anyone else who needs to install on z570, here are some notes:

Run the BIOS update, this must be done through Windows as they are supplied as exe's from Lenovo. Unless you are a Linux ninja and can do it from the Live CD (I am not!). If you already let Ubuntu completely overwrite your HD then you'd better get a Windows iso and make that update run.
When going to reinstall, Ubuntu did not see my Windows partitions, just 100% unallocated space. There is something wrong with the partition tables and unless you know how those things all work, it is far more painless to let Ubuntu just repartition your whole drive. FixParts reported that my partitions were all overlapping one another. I did a bit of tweaking and eventually Gparted (and LiveCD install process) could see my partitions but still no success in installing to the designated ext4 formatted one.


Change audio output socket on Ubuntu 15.04

If you are using PulseAudio, you should be able to do it by running pavucontrol. Go to output devices and see if you can select another output there.


Blank Screen while upgrading 19.04 to 19.10

Have you tried the advice of WinEunuuchs2Unix? If you Ctrl+Alt+F3  (or F4) you should get a terminal prompt. Login with your username and password, and then try typing 'top'. You should get a list of apps that running. The package 'dpkg' should be running if the upgrade is still happening.


In Firefox simply pressing Alt once is enough to bring the menu bar back. You probably are wondering about the merged menu that used to exist in 16.04, that one is gone for the moment.

As a side note, that's the default behaviour of Firefox's menu bar. The reason why 16.04 had was, I think, because of the Hud? Which is now gone from 17.10.


The short answer is, you cannot. Notifications are a dbus service, which runs on the user's session bus. If you want to send a notification from a system service, to a user, you will need to have a daemon which runs as the user and communicates with the system service, and the user's session bus, to send the notification.

Using any hacks to get around this design, will almost certainly be a security vulnerability.


how to change ADDED interface names and make them persistent

You can assign a persistent name to predictable interfaces as explained here: https://www.freedesktop.org/software/systemd/man/systemd.link.html

You should only need to match the MAC e.g

/etc/systemd/network/10-dmz.link

[Match]
MACAddress=00:a0:de:63:7a:e6

[Link]
Name=dmz0

So you can have predictable names enabled but have it the old way to some degree.

It'll be nice when predicatable names all TAB complete because they are a pain imo.


Package dependencies can not be resolved error while installing wine in a 64-bit PC

To install WINE on your system you can follow these steps:

Open the terminal using Ctrl-Alt-T and use the following command

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get install wine1.6

Where wine1.6 is the current stable version.

  The 1.7 packages are beta packages. This means they will periodically suffer from regressions, and as a result an update may break functionality in Wine. If the stable 1.6 Wine version works for you, then you may not want to use these beta packages.

You can also find more information on:

http://www.linux.org/threads/installing-and-configuring-windows-emulator-wine.4368/
https://www.winehq.org/download/ubuntu


Is it possible to disable the automatic download of updates when the internet connection is through a 3G dongle?

Everytime a network interface goes up, scripts in /etc/network/if-up.d/ get executed.
You need to find out wich interface does your 3G connection binds.
This is a snipped for samba script, that comes in Ubuntu 12.04

#!/bin/sh
# Try to bring nmbd up when an interface comes up, if smbd is already running.

# Don't bother to do anything for lo.
if [ "$IFACE" = lo ]; then
        exit 0
fi

You can disable automatic update of the package list and unattended upgrade thorugh this file (this is for Ubuntu 12.04, your files might have different names), you can search for this pair of keys on directory /etc/apt/apt.conf.d

$ cd /etc/apt/apt.conf.d/
$ grep Update-Package-Lists *
10periodic:APT::Periodic::Update-Package-Lists "0";
20auto-upgrades:APT::Periodic::Update-Package-Lists "0";

Same goes to this key

Unattended-Upgrade "0";

You can build the script that copies the "non-auto-update" version of the files, when IFACE is your 3G connection. And in any other situation, copy the normal files that you have now.
Here is an example that does something similar:
How do I make the script to run automatically when tun0 interface up/down events?


Why can't I install uTorrent Server on Ubuntu?

You must install 32-bit compatibility libraries or use the native 64-bit uTorrent Server

You are using 64-bit Ubuntu
You downloaded the 32-bit version of utserver, which requires the ia32-libs compatibility package on 64-bit Ubuntu (or you get the cryptic file not found error)

You can fix this problem with sudo apt-get install ia32-libs

Better yet, get the native 64-bit version of uTorrent Server:

wget http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz
After that you will need to install libssl v0.9.8 to get it work, with sudo apt-get install libssl0.9.8

Educational screenshot, or "how did you know that?":


Depends on the type of disk encryption that is used on the laptop. If the laptop is using BitLocker full disk encryption then you can turn it off by following the directions at: http://windows.microsoft.com/en-us/windows-8/using-bitlocker-drive-encryption . If you are using some other full disk encryption then you will need to post more details.


Dock and top bar blinking/flashing at fullscreen


What happens to the Software Center once Ubuntu switches to GNOME Software?

No, they will not receive gnome-software as an update. To get gnome-software as the replacement for software-center, you will have to upgrade to at least 16.04.

Any computer that you do not update to a version later than 12.04 only has about 13 more months of support. After that, they will receive no security updates.

As 14.04 is supported for 5 years, it has until sometime in April of 2019, but it will not receive any new features in software-center either.

And yes, any packages you have installed, will automatically be updated, if any updates are released for them, to the version of Ubuntu you are running.


Problems installing MATLAB - Scientific computing environment

Open a terminal and type sudo apt-get install matlab-support. You will see the following screen:

Follow the instructions - enter the directory where you installed MATLAB. This will work.


Install gnome-tweak-tool by:

sudo apt-get install gnome-tweak-tool

Hit Super key/Windows key and search for Tweak Tool. Go to 'Power' options and change the behavior as you wish.


Easiest/Best way to forward Ubuntu desktop to windows?

I've had decent results in the past using Remmina as I recall. It supports numerous protocols including RDP (A Windows favourite). More information can be found here: https://freerdp.github.io/Remmina/index.html and soon here: http://remmina.sourceforge.net/

I recall changing the default RDP port (for security reasons)

I used Remmina on the Ubuntu side and Remote Desktop on the Windows side. It worked. Granted this was many years ago and I almost never use Windows now so your mileage may vary..


MacBook Air 1,1 Wireless Broadcom Driver Not Working

This means that even with firmware-b43 the Broadcom Wi-Fi will not
  work.

I am not at all sure that's the case. Let's try so we know for sure. With a temporary working internet connection:

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

After it finishes, detach the ethernet or tether or however you connected to the internet and reboot. Give us your report.


If you want install the Flameshot on Ubuntu 16.04 you can simply build it from the source.

To do that, firstly you need to install these build tools:

sudo apt install g++ build-essential qt5-default qt5-qmake qttools5-dev-tools
sudo apt install libqt5dbus5 libqt5network5 libqt5core5a libqt5widgets5 libqt5gui5 libqt5svg5-dev
sudo apt install git openssl ca-certificates

And after that download the sources and install them:

git clone https://github.com/lupoDharkael/flameshot.git && cd flameshot
mkdir build && cd build
qmake ../
sudo make
sudo make install


Logrotate: Using multiple criteria for rotating

size is incompatible with the time-based settings, so when you specified daily after it, it was overruled. Try maxsize. From man logrotate:

maxsize size
      Log files are rotated when they grow bigger than size bytes even
      before the additionally specified time interval (daily,  weekly,
      monthly,  or yearly).  The related size option is similar except
      that it is mutually exclusive with the  time  interval  options,
      and  it  causes  log  files to be rotated without regard for the
      last rotation time.


It sounds like you might be running dpkg-buildpackage from inside the debian/ directory.  You should be running it from the top-level directory.

If that's not the case, make sure the debian/ directory exists at all.

Update:
By the way, Gitlab is not suitable to be built with Debian so your command dpkg-buildpackage will never work...


How do I record internet radio stream from banshee 2.6.2?

You have to download the StreamRecorder extension for Banshee.

You can download it from here.  Make sure that you install common files for banshee-community-extensions first, which also can be downloaded from the same location.


There are more options but I can list 3 from the top of my head

Use a 'live cd' and boot from it, you can then mount discs and then can put your files to a backup using something like Brasero or command line.
Enter grub rescue and use the command line to save your files to a backup.
Re-install but do not format your discs and Ubuntu will leave your home intact. But this is risky ... if you make a mistake it will all be gone.


APT reporting disk full but disk isn't full!

Turns out the disk was kinda full.  I was close to exhausting inodes.

root@BEDROOM:~# df -i

Filesystem     Inodes  IUsed  IFree IUse% Mounted on
udev           207347    498 206849    1% /dev
tmpfs          214299    525 213774    1% /run
/dev/sda1      909312 906196   3116  100% /
none           214299      2 214297    1% /sys/fs/cgroup
none           214299      3 214296    1% /run/lock
none           214299    133 214166    1% /run/shm
none           214299     10 214289    1% /run/user

Have to figure out what is using up so many now.

Edit:  Ironically it was the old linux header files taking up a lot of inodes.  So I deleted the oldest 2 versions manually from /usr/src which freed enough up to do your script which in turn freed up even more.

After running apt-get purge $OLDCONF from kyodake's script:

Filesystem     Inodes  IUsed  IFree IUse% Mounted on
/dev/sda1      909312 889004  20308   98% /

After running apt-get purge $OLDKERNELS

Filesystem     Inodes  IUsed  IFree IUse% Mounted on
/dev/sda1      909312 644406 264906   71% /

and I now have another 4gb free

Thanks Kyodake!


ifconfig is actually /sbin/ifconfig. It sounds like the /sbin directory is not in your PATH. Either add /sbin to your PATH, or type the command as /sbin/ifconfig


It says what to do in the respond, run dpkg --configure -a

sudo dpkg --configure -a


Mount iOS device: unhandled lockdown error

I've been waiting for someone to answer with first hand experience. As no one has I'll post an answer with what I've discovered.
iOS 11 ideviceinstaller, ideviceinfo not working #510:

This is a very long support thread with many contributors
General agreement is need to recompile idevice.c
A patch has been created here

I'm using Android so cannot test how Apple works.


laptop keyboard not responding after upgrade from 13.04 to 13.10

I had the same problem and I found the following solution:

http://stevesubuntutweaks.blogspot.no/2013/10/laptop-keyboard-stopped-working-after.html


Ubuntu 13.04 speakers making no sound after booting?

Entering

sudo alsa force-reload

in the terminal is the only solution I've found


Enabling or Installing D-Link DWM 156 broadband modem?

12.04

Before proceeding ahead, I would say that I used ultimate edition linux 3.4 64 bit-- this distro has all the library and dependencies for installing drivers( ia32-libs, usb_modeswitch).

The driver supplied with the dongle is a 32 bit driver. This successfully gets installed on a 64 bit Ubuntu if, and only if you have ia32-libs installed.

I used this driver with Lubuntu 64 bit and got an error message when I ran the command:

usbdeviceswitchdlink

The error was /usr/bin/usbdeviceswitchdlink: command not found.

The work around is simple. At the terminal (Ctrl+Alt+T) type this:

sudo su

And enter your password. Then type:

apt-get -y install ia32-libs

The above command will add 32 bit compatibility on 64 bit Ubuntu successfully. If you get an error message, run the command again.

Once successfully installed, proceed ahead and you shouldn't get any error messages once you have installed the 32 bit driver on your 64 bit Ubuntu.

In the terminal, type usb then press Tab twice. If you don't see usb_modeswitch, it means it is not installed - good, you don't need it. If yes (you see it), you need to uninstall usb_modeswitch.

Step 1

Type sudo su, and enter your password.
Then type:

mkdir /media/cdrom
mount /dev/srX     /media/cdrom

Press Tab twice.

  Note: the X in /dev/srX must be 1 or 2 - use accordingly.

Once mounted, press Alt+F2, and type nautilus. You will see the cdrom mounted on the left. Click it.
A file dlinkusbmodem.deb should be present. Double click it. Install it.

Step 2

After the installation is complete, type the following in the terminal:

usbdeviceswitchdlink

It will show command executed successfully.

Done!!

I'm using this dongle with Reliance netconnect 3G.

And here's the video.

Note

In case you are not able to mount the device (in Step 1), there is an alternative:

Connect the device to a Windows PC. (Do not install the Dlink.exe. If already installed, uninstall it.) Then reconnect the device. It will show up as a USB storage device.
Browse it and copy the file dlinkusbmodem.deb (our driver) to any storage device.
Go back to your Ubuntu and paste the file to your Desktop and install it by double clicking it. If it gives you errors, go to the terminal and type the following command:

cd ~/Desktop && sudo dpkg -i dlinkusbmodem.deb

The drivers should be installed. Now continue following the instructions in Step 2.

I tied it in crunchbang linux (a debian based Linux OS) but with no luck. I got an error regarding wrong architechture when I force install it!  Strange, it works flawlessly on Ubuntu 12.04 64 bit and without the --force-architecture parameter.

WARNING!!: Modem connection and disconnection regression- typical of usb 3g modems will occur if you run

sudo apt-get update

be WARY when you run the above command, as your modem might start getting disconnected when you enable the network!

If it occurs, reinstall the drivers after purging them fully. This effectually will solve the problem. Follow the above steps to install.

ALERT!:

Just want to bring to your attention:

If you insert your 3G SIM card in the dongle, you might get instant connection. After a certain period of time and usage, the dongle will get disconnected! I had taken a 3GB FRC pack for first usage. I spent a few days with this problem until I went to the showroom of my service provider where he stated: the data used up to 1GB is at the customers discretion. Once that data is used your connection cuts because your IMEI no. of the dongle goes in for verification (to check whether the device has a valid and not stolen IMEI). This procedure can take up to 3 days. After three, days I called the tech support of my service provider and they confirmed it will take another 2 days for the connection and the rest of the 2GB usage back. I continuously got "MODEM DISCONNECTED" error while using the 3G SIM card with this dongle. This is a typical problem most USB modems have and I thought it's the same thing...until I inserted my 2G SIM card and got the connection instantaneously! I had a 2G connection in my phone's SIM and I got a 18kB/s sustained download speed with this dongle. All problems solved.

Now, for the fun part:

Using the 3G connection using this dongle on my Lubuntu 12.04 netbook and connecting to my wireless TP-LINK N 300 router to get internet connection to all the computers on the network.

3G dwm 156 DONGLE -->> LUBUNTU NETBOOK -->> ETHERNET PORT OUT -->> CAT5/CAT6 CABLE -->> WAN PORT OF TP-LINK WIRELESS N ROUTER -->> GETTING INTERNET CONNECTION ON 4 ROUTER PORTS AND WIFI -->> getting connection on my desktop computer using D-link wifi dongle DWA 131.

Here is the procedure:

From my Lubuntu 12.04 netbook, enable 3G connection using dwm 156 and check internet connection.
Connect my ethernet port of my netbook to wan port of router.
Open network-manager on netbook.
Go to wired connection 1 (eth0) and press the edit button.
Go to IPv4 settings: enable- "shared to other computers".
Save.
Reboot the router and netbook.

Done!

NOW if you get connection-disconnected error do the following:

Open a terminal and type:

sudo su

And enter your password, then type:

killall  dnsmasq

Done!

If need be, check your router's wan IP settings.

Now I'm sharing internet connection using D-link DWM 156 with 7 computers.


First of all Back Up Your Data Before Making Changes to Your Partitions.

Since you have windows 7 I am assuming you have a typical partition scheme with a standard MBR and old school typical BIOS and none of that fancy new mBIOS stuff (or whatever it is).

With that said, I would recommend you download the Ubuntu iso, make a live DVD or USB following the instructions provided by the Ubuntu site. Change the boot order in your BIOS to load the DVD and USB drives BEFORE your hard disk so that the live image will boot when you turn on your computer with the disk or USB loaded and ready to go when you do.

When you boot, choose the language and then select to "try Ubuntu without installing" here you can set up your wireless connection or wired internet connection if you need to.

Click on the icon in the upper right hand corner of your screen or press the "super" or "windows key" on your keyboard.

Now, search for an application called "gparted" and select the application from the results given.

Gparted will load and will show your current partition scheme and should show 2 partitions, one for each windows 7. If these partitions are not listed you have a problem and you need to find assistance before you do anything else.

If both partitions are listed and they are recognized as NTFS partitions, take note of the size of the partitions and select one of the partitions to resize so you can free up some space to install Ubuntu on.

Right click on the partition you would like to resize. Select "Resize/Move". You can set the size manually using a number or you can use the mouse to resize the partition using the arrows FROM the bar on the RIGHT side, you want to move the bar TO the LEFT to shrink the existing windows partition. This way, you will leave the used portion of the partition untouched as you can see these two examples.

click on resize and then you have to click on the check mark icon to apply the changes. Click to verify the changes to be made and then right click on the "Unused" partition and select "New".

Select "ext4" filesystem. Lable it Ubuntu if you want to and shrink the size of the partition to leave 2-4GB of extra space that you will need later in the installation.

Again click to create the new partition, click the check mark icon to apply the changes etc . . .

When you are done, are connected to the internet and plugged in to
an AC outlet you can now select the "install Ubuntu" icon.
Go through the steps of the installation and when you reach the step
that will ask you if you would like to install Ubuntu "along side"
Windows, select "something else" instead. Here you will be taken to a partition editor similar to Gparted.
Now, right click the "Ubuntu" partition (ext4) you created earlier
and select the mount point " / " and click to confirm.
After you have done that, right-click on the 2-4GB of unallocated
space and select "swap" or "linux swap" as the type.
Review your selections to make sure you have selected the correct
partitions and not the windows 7 ones and click to apply the changes
on the lower right hand corner of the window.
Click to verify to make the changes and proceed with the remainder
of the installation and you will be finished. Be sure to remove the
Live Disk or USB before you boot back up when you are done.

When your computer boots up you will be taken to a screen that will allow you to select from a list of installed operating systems, Ubuntu, windows7, and windows7. This is called the Grub Bootloader. Grub is installed to your MBR and is extremely capable.


How can I install Ubuntu alongside Windows 7?

Make a new partition to install Ubuntu.
Boot your machine with the DVD or flash drive that you has the Ubuntu on it.
Chose your language if it isn't already in your native language.
And click on install Ubuntu.

It is really simple!!

When asked of what type of installation, maybe it's better to chose the advanced (called "Something Else") option. This will let you chose the partition and where you want to put the bootloader.

The sda will be your first hard drive, sda1 the first partition on that hard drive.
Hope it helps!!

Here's a great how to: How do I install Ubuntu?


If your concerned about your HD the run disk utility you can find it in the dash.

Click on the button to check the disk and allow it to run all tests, it can take a long time, 30+ minutes is reasonable.

At the end of the tests it should tell you if you hard disk is failing. Not sure if 250 bad blocks is critical, it may be that that part of the disk is just at the end of it's write life, the rest of the disk may be fine, see what the disk utility tells you for the best idea.

Here are some screen shots to help you out.

First select your hard disk from the tree on the left and then you will see the info on the disk.  The area circled is the overview of the disk that is made just by it running, first look to see if you have the green light and it says the disk is healthy.  Then you can click on the SMARTData button and it will give you detailed info.

The lower part of the window gives you the running info that is used to determine if the disk is healthy, any bad part will give you a red light.  The rest of the window is rather self explanatory but if you click on the Run Self-test button it will give you the option to run the disk check.  When you click on it a window will pop up asking you what kind of test to run.  Selecting the Extended test will run the full test.  As I said earlier expect it to take 30+ minutes, it will give you a running commentary on what it is doing but it is not that exciting to watch.

While it is possible to use the computer while it it working it will slow down the tests and all your programs will start much slower, browsing the internet should not be a problem as long as you are not using the offline cache, i.e. use a private browsing window so that the web pages are only stored in your RAM.  This may not be possible if you have a weak processor or very limited RAM without slowing down the computer.

After you let the test run you should see the results and if it tell you the disk is failing you might want to get a new disk and clone your old one.  There are many questions here on how to make a complete copy of your hard disk so just do a search and see which ones seem the most helpful to you; I will not get into it here as I only know how to do it in theory from reading the answer on askubuntu.

Incidentally as you can see on the second screenshot there is a box that you can check  to stop the disk utility from notifying you that the disk is failing if you leave that unchecked it will give you a notice that "Disk failure is imminent"  if it see some critical problem, I'm not sure when it will do this, I think during the boot process, I've not had that unfortunate message come up yet.


How do I run an executable file with a double click?

Right click on the file ,and check the Allow executing file as program button  in permission tab

Then Double click on the file and choose run or run in terminal(If it is a console application )

Note:

This wont work if program need root permission


GnuPG key management - Revoke, delete or expire?

If the keys are stored on key servers, deleting is not an option. It is not possible to delete anything from the key server network.

So, you are to consider between expiration and revocation. Expiration has the meaning of limiting the validity to a given date, while revocation is a statement "I won't use this key any more", with the possibility of giving a reason (superseded, compromised, ...). I would say, revoking a key with message "superseded" is a clearer statement than setting an expiration date.

For primary keys expiration is not an option anyway: an attacker getting hold of the private key (eg., because it is easier to crack it in future) could simply change the expiration date, and use the key again. This is not possible, if you shared a revocation certificate. Also see Does GPG key expiration add to security?, but be aware one of the answers given is simply wrong.


Run the following commands to fix the problem:

sudo apt-get update
sudo apt-get purge libssl-dev

Take note of what packages are to be uninstalled. If the output lists 13 packages to uninstall, you can re-install everything using the following command. Otherwise, copy and paste each line, one-by-one after this command to reinstall everything.

sudo apt-get install --reinstall libroot-core-dev libssl1.0.0 libssl-dev

Again, that command will reinstall all 13 packages.

I don't know your situation but it may be wise to run the command:

sudo apt-get dist-upgrade

However, this command make changes to your system so you should refrain from that command until you have finished any important projects that may be affected by system changes!


Shared folder access from ubuntu is too slow

I found out that the issue was due to a host resolution.

To solve add IP to /etc/hosts using the server name as hostname. In my case:

  192.168.0.200   diskstation


How can I specify the graph scale in the System Load Indicator?

I do not think you can do this with System Load Indicator. I suggest you either file a feature request on Launchpad against SLI or perhaps on Ubuntu brainstorm

http://brainstorm.ubuntu.com/


Black Screen on fresh install of Ubuntu 21.04 can't turn laptop off

Try this...

Edit the file /etc/default/grub.
sudo nano /etc/default/grub

Add acpi=force to GRUB_CMDLINE_LINUX_DEFAULT.
For example,
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash modprobe.blacklist=nouveau acpi=force"

Save the file.
Press CtrlX, then Y, then Enter.

Update grub.
sudo update-grub

Reboot to make the changes effective.


Recommendation for Cloud Sync Storage Solution

Having used multiple flavors of linux for many years and a similar number of cloud storage providers (dropbox, onedrive, gdrive, etc.), I too have run into this many times and tried almost all solutions. I would suggest you give Insync another try, maybe in a safer environment. I have used it for about three years at this point and it has become a staple for me as they have improved the gui/reliability/support.

Insync has worked well for me because:

Most importantly is that it is linked to google drive (better product than onedrive or dropbox), which easily links files to your phone/chromebook/linux/windows in seconds. Insync specifically allows me to access google files on my linux machines as if they are local files (makes coding easier. Google specific files, such as "google docs" will launch a browser if you click on it through your normal file explorer. Also, if you like it will convert all google files to ods format.
It works well with many different linux flavors (fedora, ubuntu, pi, etc.) and even non-linux computers (windows)
Can work with multiple google accounts (especially nice if your personal is different than your school/work). I had it working with three different google accounts for some time.
Insync has fairly good support (I have personally gotten feedback on about 3-4 issues over the past two years)
Lastly, it has a fairly good gui where you can click to accept or block incoming shares, choose folders to include locally, and inspect errors. You can also set notifications to see who and when files are being modified

In your specific case, due to the large amount of files you want to upload at once and the spotty internet connection, I would suggest that you upload batches of files at a time through choosing the certain files to include in the sync through the gui and add other files to be monitored as those finish. I would actually suggest this method regardless of which method you chose to go. Also always keep a backup of your files before uploading to any 'cloud'.

Cheers.


Fast and reliable way to move directories from one HDD to another

I'd personally trust rsync to do the job (with -arvx flags - archive, recursive, verbose and one-filesystem) but if you need something extra:

sha256sum <(find ./original_path/ -type f -exec sha256sum {} \; | sort) | cut -d' ' -f1
# Should output something like:
# dbda116eaa459cee10b25765202c37d40b9371df52afb2ad202b13327760b251

# copy your files to ./new_path/
# Something like: rsync -arvx ./original_path/ ./new_path/

sha256sum <(find ./new_path/ -type f -exec sha256sum {} \; | sort) | cut -d' ' -f1
# Should also output:
# dbda116eaa459cee10b25765202c37d40b9371df52afb2ad202b13327760b251

If you're not happy with rsync, you could always tar up the files and extract them in the new location. I'd recommend checking their integrity with a similar method as above, if they're really important.


How to install Python module Urlib2 on Precise?

You have a typo.

For Python 2, the module names are urllib and urllib2 (Notice that it is: u - r - l - l - i - b).

Refer the Module Index in Python 2 Documentation.

Refer the Module Index in Python 3 Documentation, if you plan to use Python 3 at a later date. There have been changes in these two modules in Python 3.


Wireshark is correct; "of" is, in fact, neither a field nor a protocol name.

"openflow", however, is, as are "openflow_v4" for Openflow-v4-specific fields and "openflow_v5" for Openflow-v5-specific fields.  Make sure you have Wireshark 1.12 or later (earlier versions didn't have Openflow support), and fix the color filters to use the correct field and protocol names.


Is there anyway to block http on port 443 using ufw

This just an opinion until you get another valid answer.

$ sudo ufw deny port/protocol

is the typical command for ufw but

$ sudo ufw deny 443/http

gives

ERROR: Bad port

And

$ sudo ufw deny http
$ sudo ufw status
  Status: active
--
80/tcp                     DENY       Anywhere
--

Now my guess is that ufw only works on the Transport layer. In that layer you can access port numbers, transport layer protocols like TCP/UDP, and of course the IP addresses. And ufw is capable of working with those. But http/https is on session layer, one layer lower than transport layer and ufw does not have access to those.
But there are other firewalls that work on different layer according to this


Bluetooth switch disabled on every boot Xubuntu 18.04

EDIT/UPDATE:

After perusing a couple of other wireless threads, it turns out this was actually a windows 10 driver issue. That is very odd given I boot windows once a fortnight to do updates and haven't done so for a while.

Anyway, problem solved. Sorry for any bother.


Reduce SynPS/2 Synaptics TouchPad sensitivity on Ubuntu 18.04LTS

Here is a similar question. I don't know if it will help, as it is for KUbuntu, but it is essentially the same. kubuntu 18.04: My touchpad sensitivity is way to high, configuring the touchpad in system settings doesn't affect anything. It is also in the settings, and that does not seem to work right now. Here is another possibility: https://help.ubuntu.com/community/SynapticsTouchpad. I hope it helps.


Huge KDE System Tray icons in Kubuntu 14.04

Yes. You have  "Improve systemtray on HiDPI displays" AND you have not set proper DPI. You should set True DPI value for you monitor in "Appearance-Fonts" setting in the System Control. If this does not work, set proper DPI in Xorg settings.


Can the parameters of the Music Lens be edited?

Currently these can not be edited, your best bet is to file a feature request with the maintainer.

https://launchpad.net/unity-music-lens

Keep in mind that a lense has to be fed by scopes, so not only does the lense need to be updated but whatever scope is feeding it will need some love too. (default is rhythmbox - I think, I use clementine)


Installing the package using the Software Centre provides you with the VirtualBox program itself. You will be able to make new VM's, or add existing ones, and run them with the interface it provides.

There are some hardware features, like USB 2.0, that need additional files in order to be usable. Highly recommended are the VirtualBox Guest Additions, which provide the guest operating system with drivers that help it run better. Also, you can get the VirtualBox Extension Pack, which enables features like USB 2.0.


How to build deb package for ubuntu 18.04

This forum thread outlines a basic way to create a .deb package for distribution, and indeed, this does not involve a need for root privileges. I replicate it here with credit to the forum user curvedinfinity, as a very nice illustration of the basics involved.
The checkinstall tool described in the link you provided is not primarily intended for general .deb package preparation. It is primarily intended to install software you compile yourself in a way that the package manager knows about it. Accordingly, it requires root privileges. The trick used indeed is to create a .deb file specific for your system, and then install that one. The .deb it creates may not be suited for general distribution.

Excerpt from Ubuntuforums by curedfinity:

Decide on the name of your package. Standard debian notation is all lowercase in the following format:
<project>_<major version>.<minor version>-<package revision>

For example, you could name your first package...
helloworld_1.0-1
Create a directory to make your package in. The name should be the same as the package name.
mkdir helloworld_1.0-1
Pretend that the packaging directory is actually the root of the file system. Put the files of your program where they would be installed to on a system.
mkdir helloworld_1.0-1/usr
mkdir helloworld_1.0-1/usr/local
mkdir helloworld_1.0-1/usr/local/bin
cp "~/Projects/Hello World/helloworld" helloworld_1.0-1/usr/local/bin

Now create a special metadata file with which the package manager will install your program...
mkdir helloworld_1.0-1/DEBIAN
gedit helloworld_1.0-1/DEBIAN/control

Put something like this in that file...
Package: helloworld
Version: 1.0-1
Section: base
Priority: optional
Architecture: i386
Depends: libsomethingorrather (>= 1.2.13), anotherDependency (>= 1.2.6)
Maintainer: Your Name <you@email.com>
Description: Hello World
 When you need some sunshine, just run this
 small program!

(the space before each line in the description is important)
Now, supposing your current directory is the one containing the folder helloworld_1.0-1, you just need to make the package:
dpkg-deb --build helloworld_1.0-1

And you're done!

End of citation.


You have installed the debug symbols, which are not related to debug messages.
With the debug symbols you can use debuggers, like gdb.
In order to read debug messages you need to compile the kernel/kernel module with the DEBUG define.


Acer Aspire V3 does not recognize my EFI partition

I finally solved the issue, Kubuntu is able to boot with the default UEFI firmware settings (no legacy mode, secure boot enabled). EFI/ubuntu/shimx64.efi needs to be selected once in the UEFI (press F2 during boot, set a supervisor password, then got to Select an UEFI file as trusted for executing and pick EFI/ubuntu/shimx64.efi). The password can be removed afterwards. Here some background information: SHIM (shimx64.efi) is a (Microsoft) signed binary used to call GRUB (grubx64.efi); GRUB then loads the Linux kernel. By the way when I boot in legacy mode Kubuntu is unable to shut down correctly and crashes every time I try to change the mouse settings; this is solved after switching to UEFI mode.


Not enough boot space to download Ubuntu 14.04.03

You run the system from LiveCD. It is not installed.

That is the reason why you cannot "load" anything.


HP 845C not printing in normal grayscale mode

There are available at least 3 drivers for this printer in CUPS (http://127.0.0.1:631/ or http://localhost:631). Don't worry to 'Modify Printer' and change driver. Input user and password, then do not change nothing on 1st (connection) and 2nd screen - just click continue and on 3rd screen select driver. By default was HP Deskjet 845C hpcups 3.17.10 (en). I have tried
HP Deskjet 845c CUPS+Gutenprint v5.2.13 (en)
and all is working fine now. I can choose different options for printing and everything is working OK. Even printing quality of drawings/schematics from pdf is good now - not blurred as before. Before I was forced to paste print screens/diagrams to KolourPaint and print as png. Sorry guys if someone was already busy with this thread. Solved. Regards.


This issue is caused by a corruption of your config files (~/.config/chromium). I don't think there is an easy way to fix the config but if you move/delete/rename the config directory chromium should restart. You will have lost your config though.


14.04 media server, general questions, Force Boot, Lean Running, Auto Updates..

You can use the nobootwait flag in your fstab to have the system continue to boot if mounting fails. There is also a timeo (timeout) option that might work.

To auto update and reboot you can use a cron job. To do this add an entry to the system crontab sudo vim /etc/crontab. All this stuff takes root privileges so have the command run as root.

To update and reboot every Sunday at 1am would be something like this.

m   h    dom    mon   dow   user    command
0   1     *      *     0    root    apt-get update && apt-get upgrade -y && shutdown -r now


How to install Intel XDK IDE on Ubuntu 14.04

Download  Intel(R) XDK from the link http://xdk-software.intel.com

The filename is xdk_web_linux64_master_0277.tgz

Extract the file into a temporary directory probably ~/temp. The root of the compressed file has a single directory called xdk_web_linux64, so you don't need to create a separate directory.

In your terminal go to the directory ~/temp/xdk_web_linux64

cd ~/temp/xdk_web_linux64

Explore the directory with ls command and check for the file install.sh

Install using the install.sh script. It should work fine

./install.sh

Hope this helps!


Is there a way to install Gnome Themes with the terminal?

A theme as so called by gnome-look.org can include several themes:
 - Gnome shell theme
 - GTK+ theme (for windows)
 - Icons theme
 - Gnome shell extension(s)

So, manually installing a theme is manually installing each component.
Some theme providers build a deb package that make it easier to maintain

For example the Flat Remix theme is available as deb package on a ppa
See :
- https://www.gnome-look.org/p/1013030/
- https://drasite.com/flat-remix-gnome

Installation of the Flat Remix theme goes like this

sudo add-apt-repository ppa:daniruiz/flat-remix
# update not required since 18.04
# sudo apt-get update
sudo apt-get install flat-remix-gnome


How do I get rid of this extra battery icon?

go to dash
type: power
Enter power management and choose "general" tab
you'll see the option there.


Script that formats a drive in a very specific way

First you are missing the block device for the commands to work on. In your case that seems like being /dev/sdc.
The parted mklabel command does not create a partition but puts a disklabel on the disk and is needed to partition the disk.
The next step would be to create a partition on the labeled disk and afterwards create a filesystem within that partition. mkfs.ext2 will create a filesystem.

So the single steps would be as follows. Be carefull in executing and be sure to pick the right blockdevice /dev/sdx, otherwise you will loose data.

First, clean the disk from preexisting things.

root@localhost:~# wipefs -a /dev/sdc

Then create the disklabel and the partition.

root@localhost:~# parted /dev/sdc mklabel msdos
root@localhost:~# parted /dev/sdc mkpart pri 1MiB 100%

Finally create a filesystem within the partition.

root@localhost:~# mkfs.ext2 -F /dev/sdc1

If you are not logged in as root you have to prepend each command with sudo. Also consider using gpt as disklabel instead of msdos as you can create larger and more partitions with gpt.
You also might want to choose ext4 as filesystem instead of ext2, but you also might have reasons for ext2.


How can an application (like Firefox) be forced to use a certain network interface?

What you are looking for is a LS_PRELOAD shim, see Daniel Lange's blog entry for a detailed explanation and example code.


GRUB2 menu only shown after Ctrl+Alt+Del

To apply change in grub2, you have to

update-grub2

to have effect.


Installed Ubuntu on top of XP and can't boot XP

Maybe it didn't pick up XP during the installation. In Ubuntu, click Applications > Accessories > Terminal and then type:

sudo update-grub

This will update the GRUB menu. If it says something like:

Found Windows XP (loader) on /dev/sda1

then you should be able to choose between XP and Ubuntu during your next boot.


Asus ROG GL702VM ACPI Keyboard Backlight

I had the same problem with my Toshiba laptop too. I searched the internet for weeks for a possible solution. Replacing GRUB_CMDLINE_LINUX="" with GRUB_CMDLINE_LINUX="acpi=off" in grub configuration fixed the keyboard backlight issue, but after disabling acpi, the usb-mouse, network card, FN keys didn’t work. Not even the laptop’s mouse pad worked! So, be careful with GRUB_CMDLINE_LINUX="acpi=off". If we can find a way to disable acpi and still have everything else working, that would be the answer to this problem.


How can I use Mysql command line client in Ubuntu 12.04?

Open a terminal, e.g. by pressing Ctrl+Alt+T. Then run the command

mysql

Edit: Like mentioned in a comment, you can specify a user using the -u argument. If this user is password protected, also add a -p, then you'll be prompted for a password. For example if you wanted to log in with a user called root:

mysql -u root -p


Internal PCI Motorola sm56 Modem Doesn't Work on Ubuntu 13.04 32 bits with Smartlink Drivers

The following procedure worked for me with Ubuntu 14.04, Mint 17.0 and Mint 17.1:

sudo apt-get install sl-modem-source sl-modem-daemon
sudo apt-get install module-assistant
sudo module-assistant auto-install sl-modem
sudo depmod -a (this updates the list of available modules)
sudo gedit /etc/default/sl-modem-daemon

Insuring that SLMODEMD_COUNTRY=USA (or whatever country you are in)

sudo modprobe slamr

Unfortunately, this stopped working with Linux Mint 17.2, which has a different kernel.


Corrupted Installation of Discord on Ubuntu 16.04

To fix this "issue" make sure that you have all dependencies installed, especially libatomic1.

'libc6',
'libasound2',
'libatomic1',
'libgconf-2-4',
'libnotify4',
'libnspr4',
'libnss3',
'libstdc++6',
'libxss1',
'libxtst6',
'libappindicator1',
'libc++1',

Try installing the libatomic1 library, worked for me:

sudo apt install libatomic1

I personally used sudo dnf install libatomic, but on Fedora. Source (reddit)


Persistent dual-monitor configuration on KDE4

KDE 4.11 has a new module called KScreen. It does what you need.

But you have on old Ubuntu version. Not sure that you can backport KScreen to your KDE version.

You should upgrade KDE to version 4.11+


Parallel Installation of Ubuntu, Wubi and Windows 7?

What you ask is possible when you install ubuntu on a seperate partition.  You can also make a seperate partition and move your wubi to that partition  - so you will keep all your installations (look for script for moving wubi to its own partition). I did it even, but afterwards I did a complete installation. 20 GB partition for ubuntu is enough.

Even better, you can make the partitions before you start.  In wubi: install gparted, and make two partitons extra.  First you have to unallocate space from your C drive (take 20 GB if you can). Then make a D partition of 20 GB in ext4  (not nfts like windows) and a linux swap partition of 2 GB.  Be careful - take a backup before splitting you C partition.  Here is a link with very good explanation:
 https://help.ubuntu.com/community/HowtoPartition
Good luck.


Why does Ubuntu 17.10 not look like it after upgrade from 16.04

It may be that your login is still set to Unity.

At the login screen, click on your username, then click the small cog wheel icon, and select either Gnome, or Gnome on xorg, or Gnome on wayland. Then proceed to enter your password to log in.

You'll know that you've reached the new software because the calendar/clock/notification area will appear in the center of the top panel.

To make the dock appear, review your installed gnome extensions at https://extensions.gnome.org/local/ and enable the built-in Ubuntu Dock extension. The Ubuntu Dock is a paired-down version of Dash to Dock, and if you prefer more customization options then disable the built-in Ubuntu Dock and install/configure Dash to Dock which is found at:

https://extensions.gnome.org/extension/307/dash-to-dock/

Update:

Recommend (re)installing 17.10 to cure the various problems.


How to create laptop backups that can be restored to a bootable virtual machine

You can use tools that allow for so-called bare metal restore, Acronis TrueImage is one of them and I'm pretty sure you'll find more.

Using these tools, you can restore the image to a virtual machine, but be aware:
You system might not be in the state you'd expect it to be, since you boot the system on other (virtual) hardware.


Menus not showing in Gnome Terminal on 14.04

I found that deleting (or moving in my case) the gnome terminal config located at ~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml and rebooting causes the menu to reappear. I've posted my config here for anyone who's interested (the commented line 6 was the cause of the problem).

I'm unsure how I got the setting on line 6 set. Looking at the settings dialog for gnome terminal, there's nothing that I see that seems like it would cause that behavior.

Edit

Found the setting. I'm not sure how I missed before, or why I clicked it in the first place. I don't know how this "feature" could ever be a good thing to have, since you can't get back into the settings to set it back.


Wake from suspend results in odd visual errors

Not really an answer -- but it randomly stopped happening.  Maybe a kernel update or some other update cured it.


Auto set password for MySQL root user when install lamp-server via tasksel

Worked like a charm for me on plain Ubuntu16 server:

export DEBIAN_FRONTEND=noninteractive;
MYSQL_ROOT_PASSWORD='xxxxx';
echo debconf mysql-server/root_password password $MYSQL_ROOT_PASSWORD | sudo debconf-set-selections;
echo debconf mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD | sudo debconf-set-selections;
sudo apt-get -y install lamp-server^;


Lubuntu on MacBook will only connect to new wifi connection

I wonder if this can be of some help? I note that your chipset (BCM4321) is not listed. And your connection uses a driver for a different chip ID. «wlan0: Broadcom BCM4328»

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx


dualboot- installer cant see the hard drive

In order to rectify your problem, you need to first reboot your system with Ubuntu USB stick(or CD/DVD) in live mode.
Then open the disk utility app in your Ubuntu and check if your hard disk is visible there or not (you will most probably found it there), if not then try to refresh a couple of time and see if your hard disk is listed.
Also, try the following command :

$fdisk -l

This will list all the partitions on your hard disk.

Once you find your hard disk listed, unmount it once and then again mount it and then start the Installation process normally in live mode.

If the above methods are not helping you then it might be a corrupted USB stick or Ubuntu image file, try rebooting the Ubuntu on the stick with "USB universal installer" or some other software and then try installing Ubuntu on your system OR try downloading the Ubuntu image once again.

Also, make sure you have created some unallocated space in your previously installed system to allocate that memory to the ubuntu oS.

"GParted is a good partitioning tool which could be used for checking your hard disk and partitioning it."
Enjoy...


300 GB hard drive only shows 200 MB available

You have 300 G in the unmounted sdb5 partition. It looks like you might have encrypted it, but I am not familiar with encryption.


To fix it and conquer back all files in your home directory, run

sudo chown -R $USER: ~

And for the future:

Do not run GUI applications with sudo, but use for example gksu or at least sudo -i or sudo -H to prevent it from taking ownership of files in your home directory.


Sound card problem, audio 2 dj. snd-usb-caiaq log: Unable to find an output urb to use

Looking at the source for the latest kernel sound/usb/caiaq/audio.c, in the read_completed function, we can see the message being emitted by the caiaq usb kernel module. At the top of the module we can see that 32 urb buffers are defined.

This message is sent if all of these buffers are marked in-use. I think it makes sense that replugging the device would recreate these buffers.

This suggests a memory leak type of bug in this code or in related code within this Linux driver module.

Two suggestions:

Report this as a bug against the Linux kernel. Please see How do I report a bug?.
Try this with an updated mainline kernel. See this for updated instructions. You'll want the latest Linus' tree. I'll mention that proprietary drivers can complicate this process. Report the results of using the update mainline kernel in the above bug report.

A URB is a USB request block, and it's an analog to an IP packet. A buffer holds these packets for sending and receiving. Some quite technical information is here. Frames of sound samples are the typical payload for these request blocks.


Maybe the update broke your window manager.

Try to run in terminal mode by pressing ctrl+alt+F1, this should prompt you for a username and a password.
Then you could try re-starting the windows manager by running something like sudo service sddm restart (this depends on the version of Ubuntu you're running, so it may be a different command).

Good luck!


Photoshop on wine becomes freezing when I using the tools

When I use photoshop via wine sometimes it seems to freeze, but if I press twice the super key it solves the issue.
In fact it happens when I put the mouse on a button for a while or when I change the zoom.  I don't know why it happens.


Ok answering my own question here. Sounds pretty stupid but I couldn't try this before because of the load on my server.

sudo service atd restart does not seem to reload the atd.conf file. However, rebooting the machine does.

I don't know if this is expected behavior. If it is and you know why I would be more than happy to hear you on it.


how to download package from https://launchpad.net/ubuntu? example inside

There is a .deb package of that version here

You can click the .deb file to download it or do this:

wget http://launchpadlibrarian.net/190682664/bowtie2_2.2.4-2_amd64.deb

And then make sure you have the dependencies:

sudo apt-get install libc6 libgcc1 libstdc++6

(probably all newest version already)

Then install:

sudo dpkg -i bowtie*

but this old version may not work well on your system and won't be updated...


How to access Ubuntu Files from Windows on a dual-boot machine

While using XP, you can access your Ubuntu partition with Ext2Fsd.

It is an ext3 and ext4 driver for Windows XP, Vista and 7.
http://www.ext2fsd.com/


sudo apt-get --dry-run upgrade

will check for upgrades, but will not change the system.


Dual boot on Mac, factory EFI or other booter

rEFIt hasn't been updated since early 2010. My fork of it, rEFInd, is under active development and includes features to help with booting Linux, so it's a better choice than rEFIt in most cases.

Unless you're triple-booting with Windows or some other BIOS-only OS, I recommend at least trying to get a native EFI-mode boot of Linux working. This means you should not use Boot Camp or create a hybrid MBR -- in fact, much of my reason for offering this advice is because hybrid MBRs are so dangerous, as the linked-to page describes. That said, some users with some models report that some hardware (typically the video hardware) works poorly or not at all when booted in EFI mode, so a BIOS-mode boot of Linux may be necessary. I recommend you consider this a fallback position, though.

I've written a Web page on installing Ubuntu on a Mac in EFI mode; see here. Unfortunately, that page is a bit outdated, and my only Mac is a rather old 32-bit model, so some details are likely to be different for users of newer 64-bit Macs. Still, it may be a useful reference.


Problem solved.
These beeps lived with my PC for years (1 year after I bought it), until I used to hear them all the time with different aspect :

Five beeps only at the beginning.
Five beeps the whole time.

I thought it was a manufacturing defect so I tried to ignore it since it comes after only 1 year and I already cleaned the PC one years ago !
I was trying to mute the sound until my PC turns off these two days showing this message "Core temperature above threshold, cpu clock throttled". Serious hardware problem.

I cleaned the fan (wasn't very dusty), changed the CMOS battery, cleaned the processor from the old thermal paste and changed it.

Even the fan now don't run rarely. Looks like a new laptop.