Tuesday, December 31, 2019

apt - What causes "Failed to fetch ... File has unexpected size. Mirror sync progress?" error?

I've seen this error pop up for different people for different repositories. I was just curious what is the exact this error, as I got it the other day. I think I ran "sudo apt update."




E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages.bz2 File has unexpected size (9051 != 9594). Mirror sync in progress?





From my impression, it is something that happens when the package containers mess up with something.

bash - Pass arguments from file line by line to function

I have list of some mp3's:




song 1.mp3
song 2.mp3
.
.
.
song 349.mp3


I can see their bitrate via right mouse button -> Properties -> Audio/Video,
but also I can check it using the terminal command




file "song 1.mp3"


I'd like to find out which bitrate from my list is most frequently used, so I thought it would be nicely done via shell i.e. shell script.



I would lose too much time if I typed



file "song 1.mp3"; file "song 2.mp3"; ... ; file "song 349.mp3"



So, my question is :



Can we pass arguments line by line from some text file to shell function?
An additional problem is that my song names contain spaces.

13.04 - How do I use/enable zcache?



I'd like to try out zcache but I just can't figure out how I would enable it, do I have to compile a new kernel with zcache enabled? I'm running Ubuntu 13.04 64bit



Ok I figured it out, I just added zcache to the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub file, then ran sudo update-grub.



Example:



GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zcache"


installation - How to show GRUB after install Ubuntu over Windows 8?

I installed Windows 8 and after that I installed Ubuntu. This are my partition now:





  • 70Gb --> Windows 8

  • 50Gb --> Ubuntu 12.10

  • 100Mb --> UEFI

  • 300Mb --> Recovery



I installed the GRUB on /dev/sda. Then, after GRUB not showing up and booting directly into Windows 8, I turned the laptop off and booted again into Ubuntu LiveCD and ran the Boot-repair utility, it give me this information but it didn't solved the problem.



My Laptop still boots directly into Windows 8, without GRUB or Ubuntu even showing up.

16.04 - Black borders in Ubuntu 16


similiar question but for ubuntu 16.


I was trying to open google earth on chrome but was getting a message along the lines that I did not have any hardware accelaration.


So I followed some askubuntu questions and was able to get it working by enabling something in chrome's flags. But know I have the black bars and borders everywhere in ubuntu. Even the terminal is black and I can't see anything.


Please help



I was able to resolve the issue by reinstalling my nvidia graphics driver as mentioned by the accepted answer in this link.


11.10 - How can I upgrade kernel to 3.1?

The Ubuntu kernel PPA doesn't have kernel 3.1. Is there any other guaranteed way to upgrade because I don't want to reinstall Ubuntu again.

Monday, December 30, 2019

wireless - Wifi connectivity issue in Ubuntu 16.04

I am not able to connect wifi in my laptop with Ubuntu 16.04 LTS



Can some one let me know what could be the problem?




How can I check if my system does not have some software necessary for connecting wifi?



As suggested here I am giving the information in wireless-info.txt file.




########## wireless info START ##########

Report from: 30 May 2018 21:31 IST +0530

Booted last: 30 May 2018 00:00 IST +0530


Script from: 10 Jan 2018 20:04 UTC +0000

##### release ###########################

Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial


##### kernel ############################

Linux 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

Ubuntu


##### lspci #############################

08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [103c:2211]
Kernel driver in use: r8169

09:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]
DeviceName:
Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter [103c:18ec]


##### lsusb #############################

Bus 001 Device 003: ID 064e:c342 Suyin Corp.
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 002 Device 002: ID 046d:c31d Logitech, Inc. Media Keyboard K200
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no

2: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no

##### lsmod #############################

hp_wmi 16384 0
sparse_keymap 16384 1 hp_wmi
rt2800pci 16384 0
rt2800mmio 20480 1 rt2800pci

rt2800lib 94208 2 rt2800pci,rt2800mmio
rt2x00pci 16384 1 rt2800pci
rt2x00mmio 16384 2 rt2800pci,rt2800mmio
rt2x00lib 57344 5 rt2x00pci,rt2800lib,rt2800pci,rt2800mmio,rt2x00mmio
mac80211 737280 3 rt2x00lib,rt2x00pci,rt2800lib
cfg80211 565248 2 mac80211,rt2x00lib
eeprom_93cx6 16384 1 rt2800pci
crc_ccitt 16384 1 rt2800lib
wmi 20480 1 hp_wmi


##### interfaces ########################

[/etc/network/interfaces]
auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0 Link encap:Ethernet HWaddr
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::7772:7d9f:ce67:a12c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3182 errors:0 dropped:0 overruns:0 frame:0
TX packets:3315 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2096422 (2.0 MB) TX bytes:420183 (420.1 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:651 errors:0 dropped:0 overruns:0 frame:0
TX packets:651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:62175 (62.1 KB) TX bytes:62175 (62.1 KB)

wlan0 Link encap:Ethernet HWaddr
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

##### iwconfig ##########################

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any

Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off


##### route #############################

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 eth0

169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0

##### resolv.conf #######################

nameserver 127.0.1.1
search domain.name

##### network managers ##################


Installed:

NetworkManager

Running:

root 893 1 0 21:23 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############


GENERAL.DEVICE: eth0
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:
GENERAL.HWADDR:
GENERAL.MTU: 1500

GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.2/0000:08:00.0/net/eth0
GENERAL.IP-IFACE: eth0
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --

GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-UUID: 535d176d-5f49-341f-abd3-cda51608cc5b
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.METERED: no (guessed)
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: 100 Mb/s
CAPABILITIES.IS-SOFTWARE: no
WIRED-PROPERTIES.CARRIER: on
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{5}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]: 535d176d-5f49-341f-abd3-cda51608cc5b | Wired connection 1

IP4.ADDRESS[1]: 192.168.0.4/24
IP4.GATEWAY: 192.168.0.1
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 202.88.238.3
IP4.DNS[2]: 202.88.238.5
IP4.DOMAIN[1]: domain.name
DHCP4.OPTION[1]: requested_routers = 1
DHCP4.OPTION[2]: requested_domain_search = 1
DHCP4.OPTION[3]: requested_time_offset = 1
DHCP4.OPTION[4]: requested_domain_name = 1

DHCP4.OPTION[5]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[6]: requested_broadcast_address = 1
DHCP4.OPTION[7]: requested_netbios_scope = 1
DHCP4.OPTION[8]: requested_wpad = 1
DHCP4.OPTION[9]: next_server = 0.0.0.0
DHCP4.OPTION[10]: expiry = 1527702837
DHCP4.OPTION[11]: requested_interface_mtu = 1
DHCP4.OPTION[12]: requested_subnet_mask = 1
DHCP4.OPTION[13]: routers = 192.168.0.1
DHCP4.OPTION[14]: dhcp_message_type = 5

DHCP4.OPTION[15]: ip_address = 192.168.0.4
DHCP4.OPTION[16]: requested_static_routes = 1
DHCP4.OPTION[17]: domain_name = domain.name
DHCP4.OPTION[18]: requested_domain_name_servers = 1
DHCP4.OPTION[19]: broadcast_address = 192.168.0.255
DHCP4.OPTION[20]: requested_ntp_servers = 1
DHCP4.OPTION[21]: requested_netbios_name_servers = 1
DHCP4.OPTION[22]: dhcp_lease_time = 7200
DHCP4.OPTION[23]: domain_name_servers = 202.88.238.3 202.88.238.5
DHCP4.OPTION[24]: requested_ms_classless_static_routes = 1

DHCP4.OPTION[25]: subnet_mask = 255.255.255.0
DHCP4.OPTION[26]: network_number = 192.168.0.0
DHCP4.OPTION[27]: requested_host_name = 1
DHCP4.OPTION[28]: dhcp_server_identifier = 192.168.0.1
IP6.ADDRESS[1]: fe80::7772:7d9f:ce67:a12c/64
IP6.GATEWAY: fe80::12be:f5ff:fe94:117f
IP6.ROUTE[1]: dst = fe80::12be:f5ff:fe94:117f/128, nh = ::, mt = 100

GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi

GENERAL.NM-TYPE: NMDeviceWifi
GENERAL.VENDOR: Ralink corp.
GENERAL.PRODUCT: RT3290 Wireless 802.11n 1T/1R PCIe (Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter)
GENERAL.DRIVER: rt2800pci
GENERAL.DRIVER-VERSION: 4.4.0-127-generic
GENERAL.FIRMWARE-VERSION: N/A
GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)

GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.5/0000:09:00.0/net/wlan0
GENERAL.IP-IFACE:
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --

GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: no
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
WIFI-PROPERTIES.WEP: yes
WIFI-PROPERTIES.WPA: yes
WIFI-PROPERTIES.WPA2: yes
WIFI-PROPERTIES.TKIP: yes
WIFI-PROPERTIES.CCMP: yes

WIFI-PROPERTIES.AP: yes
WIFI-PROPERTIES.ADHOC: yes
WIFI-PROPERTIES.2GHZ: yes
WIFI-PROPERTIES.5GHZ: no
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:

SSID BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY ACTIVE *

##### NetworkManager.state ##############


[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono

dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/IITB-Guest]] (600 root)
[connection] id=IITB-Guest | type=802-11-wireless
[802-11-wireless] ssid=IITB-Guest | mac-address=

[ipv6] method=auto
[ipv4] method=auto

[[/etc/NetworkManager/system-connections/AndroidAP]] (600 root)
[connection] id=AndroidAP | type=802-11-wireless
[802-11-wireless] ssid=AndroidAP | mac-address=
[ipv4] method=auto
[ipv6] method=auto

[[/etc/NetworkManager/system-connections/HOME]] (600 root)

[connection] id=HOME | type=802-11-wireless
[802-11-wireless] ssid=HOME | mac-address=
[ipv4] method=auto
[ipv6] method=auto

[[/etc/NetworkManager/system-connections/Mathematics III]] (600 root)
[connection] id=Mathematics III | type=802-11-wireless
[802-11-wireless] ssid=Mathematics III | mac-address=
[ipv4] method=auto
[ipv6] method=auto


[[/etc/NetworkManager/system-connections/Titli]] (600 root)
[connection] id=Titli | type=802-11-wireless
[802-11-wireless] ssid=Titli | mac-address=
[ipv4] method=auto
[ipv6] method=auto

##### Netplan config ####################

##### iw reg get ########################


Region: Asia/Kolkata (based on set time zone)

country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 40), (N/A, 20), (N/A), NO-IR
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, NO-IR
(5170 - 5250 @ 80), (N/A, 20), (N/A), NO-IR
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, NO-IR
(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, NO-IR

(5735 - 5835 @ 80), (N/A, 20), (N/A), NO-IR
(57240 - 63720 @ 2160), (N/A, 0), (N/A)

##### iwlist channels ###################

lo no frequency information.

eth0 no frequency information.

wlan0 14 channels in total; available frequencies :

Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz

Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 14 : 2.484 GHz

##### iwlist scan #######################

lo Interface doesn't support scanning.

wlan0 Interface doesn't support scanning : Network is down


eth0 Interface doesn't support scanning.

##### module infos ######################

[rt2800pci]
filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
license: GPL
firmware: rt2860.bin
description: Ralink RT2800 PCI & PCMCIA Wireless LAN driver.

version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: A85C15B012046B471096C5F
depends: rt2x00lib,rt2800lib,rt2800mmio,rt2x00mmio,rt2x00pci,eeprom_93cx6
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline
parm: nohwcrypt:Disable hardware encryption. (bool)

[rt2800mmio]

filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2800mmio.ko
license: GPL
description: rt2800 MMIO library
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: C6D1A5D54B56AB8E61D5A73
depends: rt2800lib,rt2x00lib,rt2x00mmio
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline


[rt2800lib]
filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
license: GPL
description: Ralink RT2800 library
version: 2.3.0
author: http://rt2x00.serialmonkey.com, Bartlomiej Zolnierkiewicz
srcversion: 9C888DC1E0B053A56F1B5D4
depends: rt2x00lib,mac80211,crc-ccitt
retpoline: Y

intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline

[rt2x00pci]
filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
license: GPL
description: rt2x00 pci library
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: 543B84557258F153AC267F0

depends: rt2x00lib,mac80211
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline

[rt2x00mmio]
filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2x00mmio.ko
license: GPL
description: rt2x00 mmio library
version: 2.3.0

author: http://rt2x00.serialmonkey.com
srcversion: ADBE279820CFD0A1081C682
depends: rt2x00lib
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline

[rt2x00lib]
filename: /lib/modules/4.4.0-127-generic/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
license: GPL

description: rt2x00 library
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: 72E39180D883A5541F66494
depends: mac80211,cfg80211
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline

[mac80211]

filename: /lib/modules/4.4.0-127-generic/kernel/net/mac80211/mac80211.ko
license: GPL
description: IEEE 802.11 subsystem
srcversion: 6F6591120B0B257B6E5E85B
depends: cfg80211
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline
parm: minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)

parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[cfg80211]
filename: /lib/modules/4.4.0-127-generic/kernel/net/wireless/cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg

srcversion: AF52F2B944842498D5E951F
depends:
retpoline: Y
intree: Y
vermagic: 4.4.0-127-generic SMP mod_unload modversions retpoline
parm: bss_entries_limit:limit to number of scan BSS entries (per wiphy, default 1000) (int)
parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################


[rt2800pci]
nohwcrypt: N

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
minstrel_vht_only: Y

probe_wait_ms: 500

[cfg80211]
bss_entries_limit: 1000
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

lp


##### modprobe options ##################

[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]

blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54

blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac
blacklist mac80211
blacklist brcm80211
blacklist cfg80211
blacklist wl

blacklist lib80211_crypt_tkip
blacklist lib80211

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off

alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211


[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

modprobe brcm80211

modprobe brcm80211
exit 0


##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1814:0x3290 (rt2800pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"


##### dmesg #############################

[ 7.773660] systemd[1]: Started Trigger resolvconf update for networkd DNS.
[ 13.522048] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3290, rev 0015 detected
[ 13.530105] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 3290 detected
[ 31.258680] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 31.265229] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 31.711324] r8169 0000:08:00.0 eth0: link down (repeated 2 times)
[ 31.711403] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[ 33.272917] r8169 0000:08:00.0 eth0: link up
[ 33.272929] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

########## wireless info END ############







sudo modprobe -r hp_wmi wmi

praphulla@praphulla:~$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes



any help to fix this problem would be appreciated.

graphics - How to upgrade from 10.04 without affecting touchpad settings?

I am using a Macbook Pro 8,1 (Early 2011) model. I tried installing Ubuntu 11.10, and had issues with the touchpad. I installed 10.04 LTR over the 11.10 install (I completely wiped the hard drive and then installed 10.04) and the touchpad has worked fine, however my graphics card (Intel HD Graphics 3000) is not working. It is only displaying a resolution of 1024x768 and I know my laptop can go higher than that. I read some forum posts online which said that I have the new Sandy Bridge processor and only 11.04 or newer would support it. Is there any way to upgrade from 10.04 to 11.04 and further without affecting my touchpad settings at all? Any help is appreciated-thanks.

software installation - How to install RenPy on Ubuntu?



This is what I've done:



cd Downloads
tar -jxvf renpy-6.99.3-sdk.tar.bz2
./configure



And the result was:



bash: ./configure: No such file or directory


The renpy-6.99.3-sdk folder contains the following folders:



doc launcher lib module renpy renpy.app templates the_question tutorial update



And the following archives:



LICENSE.txt renpy.exe renpy.py  renpy.sh  


...



I've tried this:




cd Downloads
tar -jxvf renpy-6.99.3-sdk.tar.bz2
cd renpy-6.99.3-sdk
./configure


But the result is the same.



What you have downloaded is a standalone version of renpy, not a source tarball, so no configuration or build step is required.




You can run it directly using the provided shell script i.e. by cd'ing to the renpy-6.99.3-sdk/ directory and executing ./renpy.sh


system installation - Which version is compatible with my 8 year old dell?


My computer has 1gb of Ram, Intel(R) Pentium(R) D 2.80GHz.


Should I install Ubuntu 12.04 LTS 32bit or 64bit or Ubuntu 13.04 32bit or 64bit?


I know Ubuntu has a word processor, but am I correct in assuming that I can install MS office 2007?



With specs like those I would say 12.04 32bit but you might want to try something lighter like Lubuntu or Kubuntu.


As for your second question I want to say no. You can open the documents with MS office formats using LibreOffice but I'm not sure that you can install that in Ubuntu.


Inkscape 0.92.0 (snap) fonts problem - Ubuntu 16.10



Inkscape does not see any new installed font.




  1. Installed inkscape 0.92 (snap package)

  2. It works and recognizes all default fonts of Ubuntu 16.10


  3. Installed new font with font manager (Roboto ttf font family)

  4. Restarted inkscape and system. Inkscape does not "see" new font.

  5. Installed roboto font by copying directly to the usr/share/fonts/ folder. Refreshed font cache. Restarted system. Inkscape still does not see new font.



I've tried with couple of different fonts, and the situation is the same.



New fonts are appearing in LibreOffice for example, but not in Inkscape (maybe I need to ask elsewhere if it's Inkscape's problem?)



this is a known issue with the snap package format for Ubuntu. As far as I understand, they do only find fonts that you put into the .fonts directory in your home directory.




https://bugs.launchpad.net/inkscape/+bug/1655609


Make ubuntu usb bootable on windows



I know there are a lot of tools to create a bootable usb for ubuntu with windows.


But I'm sure, that there was a possibility in the ubuntu installation directory. I used it some time ago, but I can't find it anymore :(


I think it was a .exe, or a .bat, any case a cmd window has opened, some things were executing and the usb was bootable. And it was in the ubuntu directory!


Is there still the possibility to do that? Does that file exist? I unfortunately can't remember.

dual boot - Install Ubuntu 18.04 alongside two Windows 10

My computer setup is:




  • 1- SSD 120GB

  • 1- HDD 320GB

  • 1- HDD 1TB




I have two partitions on SSD of Windows 10 (one for work, another for games/testing/whatever) and I want to install Ubuntu on my 320GB HDD.
However, Ubuntu installer doesn't recognize Windows.



I tried to select "More options" to make the partitions on my own but when installer start said "errno 5 input/output"
I redownloaded ISO, tried other pendrives and every USB connection of my PC but always the same error.



Is there anything I can do?







EDIT:



I managed to install Ubuntu on my 320GB hard drive but now GRUB is not detecting Windows10 partitions.



I tried to use Boot-repair but despite "successfully boot repaired", only Ubuntu appears in GRUB.



Here is a pastebin of Boot-repair log: http://paste.ubuntu.com/p/5KbYMRxqg9/





  • /sda (windows system partitions)


    • /sda1 Windows 10 Work partition

    • /sda2 Windows 10 Fun partition

    • /sda3 Windows Reserved Partition


  • /sdb (Storage)

  • /sdc (Ubuntu)



    • /sdc1 Ubuntu 18.04

    • /sdc2 /Boot (partition recommended by Boot-repair)




Any ideas?

package management - Creating a Custom ISO


I've got the OK at work to drop some Windows machines and install Ubuntu on them. I will be installing Precise on them, as it is an LTS. What I would like to do is create an ISO with certain packages removed, and others installed by default (to save me having to do the same steps on each machine).


What is considered the current best way to do this. I Vaguely remember using remastersys, but that was a couple of years ago, so am assuming that things may have changed since then! Most of the resources I can find online are from 2009/2010.


Advice would be greatly appreciated!



You can use remastersys to create a custom ISO.


Sunday, December 29, 2019

PPA & Packaging: Having versions of packages for multiple distros


(quote from chat)



Got a PPA on launchpad for source packages for an IRC bot project I'm associated with (since its all the intermediate packaging for the stuff between releases, it's classified as an "experimental" PPA). Question: I've already packaged the stuff for a lucid build. Any clue how I'd be able to create the same packaging, except package it for maverick, and put it up to the same PPA that I've put the lucid packaging to?




Probably the easiest way is to simply copy the binaries on Launchpad:



  1. Go to your PPA and click on 'View package details':


    enter image description here


  2. Click on 'Copy packages':


    enter image description here


  3. Select the Lucid packages:


    enter image description here


  4. Select 'Maverick' for the series, and choose to 'copy existing binaries':


    enter image description here


  5. Click 'copy packages' and that's it!



How can I remove "Install This" from my ubuntu USB installation?

Can I run Ubuntu 12.04 LTS off my 4GB USB drive as its own native operating system with persistence enabled to save changes to the USB the same way that I do with Slax or other fully portable Linux distros?


How can I remove the "install this" icon in my current live Ubuntu USB installation? Can I run it fully portably without the icon wanting me to install it to the host computer?


I'm a Windows XP user, but I would like to switch to Ubuntu on an 8GB USB if it's possible.

14.04 - Installing Ubuntu on Macintosh PowerPC, no CD-drive, USB boot not working

I've got a Macintosh PowerPC G5 running on Mac OSX 10.4, it's a bit too old to upgrade to 10.5 and 10.4 doesn't have compatibility with much.



I decided to install Ubuntu instead, I have attempted to make a bootable USB install however it didn't boot through the USB and I wasn't able to access the boot priority because it required a password (this is a hand-me-down I decided to try and fix up).



I also burned a bootable CD installer however it turns out the CD-Drive on the PowerPC seems to have died off.




Is there any other method to get Ubuntu onto this Mac OS X 10.4 PowerPC? I tried installing rEFIt as was mentioned in other posts but apparently it's not compatible either.



Any advice greatly appreciated, thanks :)



Elías

Saturday, December 28, 2019

apt - Apache2 installation failed on Ubuntu 12.04



Hi i am trying to install Apache2 server on my Ubuntu 12.04, but when i enter this command



sudo apt-get install apache2


i am getting this error -




Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed.


This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created

or been moved out of Incoming.
The following information may help to resolve the situation:



The following packages have unmet dependencies:



 apache2 : Depends: apache2-bin (= 2.4.12-1+deb.sury.org~precise+5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


How do i fix this problem??




Run this command:



sudo apt-get update

sudo apt-get install --reinstall apache2 apache2-bin

apt - Attempting to install php-zip - getting libzip4 dependancy (>=1.0) error even though I have 1.0.1 installed


I am attempting to install the php zip plugin


I run:


sudo apt-get install php-zip (also php7.0-zip)

I get dependency missing return for libzip4 (>=1.0), yet when I attempt to install or update libzip4 via apt-get - it shows I have 1.0.1 installed (I think it may have package name or an alias of libzip4:i386 -> not sure if that is related to this problem or not but the naming convention looks odd to me in comparison to the other php plugins I have installed).


Terminal commands with output:


sudo apt-get install php-zip

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-zip' instead of 'php-zip'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
php7.0-zip : Depends: libzip4 (>= 1.0) but it is not installable


E: Unable to correct problems, you have held broken packages.


&&:


sudo apt-get install libzip4

Reading package lists... Done
Building dependency tree
Reading state information... Done
libzip4:i386 is already the newest version (1.0.1-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.


SYSTEM:


Lenovo G500s running Ubuntu Xenial 16.04 desktop vanilla install
php/apache2 standard build (stock Ubuntu LAMP stack)
php version: 7.0.15-0ubuntu0.16.04.4


Any help greatly appreciated!!


EDIT:
I have also tried to install (I believe it's the same plugin) with PECL :


sudo pecl install zip

downloading zip-1.14.0.tgz ...
Starting to download zip-1.14.0.tgz (248,476 bytes)
..............................done: 248,476 bytes
8 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed



libzip4:i386 is a 32-bit package. and conflicts with 64-bit version. are you using a 32-bit computer?


if you are using 64-bit then do:
sudo apt-get purge libzip4


then:
sudo apt-get install php-zip


if you are using 32-bit then:
sudo apt-get install php-zip:i386


10.10 - Script at Startup

I'm using 10.10 and I need to run a script in order to get a windows-like international keyboard layout - basically, it changes how dead keys work.


(Original script from this page http://t.tam.atbh.us/en/win-us-intl-4-linux/ )


Since I can't seem to manage to get it going from boot, I have to run a custom script to launch any application.




The script:


export GTK_IM_MODULE=xim
setxkbmap us intl
xmodmap -e 'keycode 48 = dead_acute dead_diaeresis dead_acute dead_diaeresis acute diaeresis'
application_name

So if I put abiword in the application_name, it runs abiword respecting the keyboard script.




Ideally, the original script would start at boot and then any applications I use would function with it - just like what happens if I run it first in Terminal (without the app_name line) and then run apps from it. I tried to make the script run from boot by adding it to /etc/rc.local but to no avail. Tried to add it to init.d but that also didn't work.


If anyone can help, I'd be most grateful.

How to export Thunderbird Mail Filters



Im using Mozilla Thunderbird on Ubuntu and it has alot of Message Filters and I want to export them so that I can use them on my home pc . I have gone through each and every menu but found no mention of EXPORT settings.



i will really appreciate how to do this.



If successful I will use Message filters on Mozilla Thunderbird installed on both Ubuntu and Windows 7.



Thanks




You can use the Thunderbird Message Filter Import/Export Enhanced addon to export and import your thunderbird message filters.



enter image description here


server - Need run scripts as different users on same host to different hosts without password prompt

I need to run scripts with different linux users on same host to different hosts without password prompt. In other words, the deferent users are on a source host able to login (ssh/scp/other shell scripts) to other hosts without password prompt.


The following is example:


hostA-user1, hostA-user2, hostA-user3 … on hostA: able to execute shell “uname –a” on hostB and hostC


hosts-user as a common user on hostB which allows others user login from different hosts.
hosts-user as a common user on hostC, hostD and etc. which allows others user login from different hosts.


But I do not want setup ~/.ssh/authorized_keys on hostB, hostC and etc. for each users on hostA and do not want users:hostA-user* to get password prompt when login and/or run scripts from hostA. Any option to do so? Thanks in advance.

grub2 - How can I fix dual boot with Ubuntu after installing Manjaro alongside it?

I installed Manjaro alongside Ubuntu and now it boots straight into Manjaro without the option of loading Ubuntu. How can I fix this? I'm not wanting to reinstall the grub.

updates - Is it possible to upgrade to LibreOffice 3.6.5?

LibreOffice 3.6.5 has been released. Can Ubuntu 12.10 update to this productivity suite version, either automatically or manually?



https://wiki.documentfoundation.org/Releases/3.6.5/RC2

Friday, December 27, 2019

customization - How do I remove any Ubuntu brand and trademark from my Ubuntu install?

I am running Ubuntu 17.10 and I would like to build a completely de-branded ISO of it. This means not just dropping the Ubuntu name from /etc/lsb_release but also deleting references in the text of the installation program, in the "about this computer" screen and so on.


I've already checked other questions but I do not consider them duplicate because:


Therefore my questions are:



  • Starting from a stock Ubuntu 17.10 (or an official derivative), how can I remove references to the Ubuntu trademark and logo?

  • What exact packages do I need to uninstall?

  • Are there images I need to replace? Are there files I need to edit other than /etc/lsb_release?


Please note that I am not interested in removing other names such as Firefox. I am only interested in the name of the distro.

How to make an install USB for Windows on Ubuntu?

That's basically it. I have a Windows 7 .iso but I don't actually have a DVD at the moment so I was wondering if it was possible to make a Live USB using something like "Startup Disk Creator" and put the .iso onto my 16GB USB. If not, what's the best way to burn it to a DVD and I'll buy some tomorrow. Thanks.

graphics - Radeon hybrid ATI Radeon card and fglrx problem - update OpenGL to 4.3

I have Lenovo G500H with Radeon HD8570M (and Intel) graphics card and my goal was to get OpenGL 4.+ version to be able to use double precision variables in shading language. Long story short, after reinstalling Ubuntu... 5 times? Now I am literally too scared to install any of fglrx driver, or AMD official update



Why? Because any time I do this, I get low graphics mode. When I use sudo apt-get install I can just remove these drivers and everything is back to normal. When I tried to uninstall the official AMD driver, best I got (after blank screen and graphics artifacts during starting OS) was broken gnome screen.




I also run Windows 7 (which I use for gaming), here I have newest Catalyst and when I play games the system uses the Radeon card, no problem here. So I don't think my Radeon card is broken.



Ehm - any ideas how I can update OpenGL WITHOUT having to reinstall Ubuntu again? ;)

11.04 - Unable to download Ubuntu latest version

I have Ubuntu 10.10 installed on my system. On update manager it is showing that new release 11.04 is available. But when I try to Upgrade Ubuntu it gives below message:


"Authentication Failed. Authenticating the upgrade failed. There may be problem with the network or server."

so when will ubuntu touch come out on samsung galaxy?

just wondering because i've ubuntu on my desktop works effortlessly and wanna make the switch but also wondering if play store is compatible with operating system or perhaps built in?

android - Galaxy Nexus fails to boot after unsuccessful Ubuntu Touch installation

I tried to install Ubuntu Touch on my new Galaxy Nexus toro (which I bought today specifically for Ubuntu Touch). I followed the instructions I found at https://wiki.ubuntu.com/Touch/Install (installed all the packages, made android backup, unlocked the phone) until I accidentally executed



phablet-flash cdimage-touch -d grouper -b


instead of




phablet-flash cdimage-touch -b


It gave me this output:



igor@igor-Inspiron-N5110:~$ phablet-flash cdimage-touch -d grouper -b
INFO:phablet-flash:Device detected as grouper
INFO:phablet-flash:Download directory set to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1
INFO:phablet-flash:Download directory set to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1

INFO:urllib3.connectionpool:Starting new HTTP connection (1): cdimage.ubuntu.com
INFO:phablet-flash:Downloading http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-recovery-armel+grouper.img to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-recovery-armel+grouper.img
--2013-09-06 21:42:14-- http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-recovery-armel+grouper.img
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.174, 2001:67c:1360:8c01::20, 2001:67c:1360:8c01::21, ...
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7344128 (7,0M) [application/octet-stream]
Saving to: ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-recovery-armel+grouper.img’

100%[======================================>] 7 344 128 1,73MB/s in 4,6s


2013-09-06 21:42:18 (1,53 MB/s) - ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-recovery-armel+grouper.img’ saved [7344128/7344128]

INFO:phablet-flash:Downloading http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-system-armel+grouper.img to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-system-armel+grouper.img
--2013-09-06 21:42:18-- http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-system-armel+grouper.img
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.174, 2001:67c:1360:8c01::1f, 2001:67c:1360:8c01::20, ...
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68095300 (65M) [application/octet-stream]
Saving to: ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-system-armel+grouper.img’


100%[======================================>] 68 095 300 2,07MB/s in 32s

2013-09-06 21:42:51 (2,02 MB/s) - ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-system-armel+grouper.img’ saved [68095300/68095300]

INFO:phablet-flash:Downloading http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-boot-armhf+grouper.img to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-boot-armhf+grouper.img
--2013-09-06 21:42:51-- http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130905.1/saucy-preinstalled-boot-armhf+grouper.img
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.174, 2001:67c:1360:8c01::21, 2001:67c:1360:8c01::1f, ...
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.174|:80... connected.
HTTP request sent, awaiting response... 200 OK

Length: 7501824 (7,2M) [application/octet-stream]
Saving to: ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-boot-armhf+grouper.img’

100%[======================================>] 7 501 824 1,74MB/s in 4,5s

2013-09-06 21:42:56 (1,58 MB/s) - ‘/home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-boot-armhf+grouper.img’ saved [7501824/7501824]

INFO:phablet-flash:Restarting device... wait
INFO:phablet-flash:Restarting device... wait complete
WARNING:phablet-flash:Device needs to be unlocked for the following to work

INFO:phablet-flash:Flashing system to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-system-armel+grouper.img
< waiting for device >
erasing 'system'...
OKAY [ 0.044s]
sending 'system' (66499 KB)...
OKAY [ 7.697s]
writing 'system'...
OKAY [ 5.756s]
finished. total time: 13.496s
INFO:phablet-flash:Flashing boot to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-boot-armhf+grouper.img

sending 'boot' (7326 KB)...
OKAY [ 0.859s]
writing 'boot'...
OKAY [ 0.443s]
finished. total time: 1.302s
INFO:phablet-flash:Flashing recovery to /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-recovery-armel+grouper.img
sending 'recovery' (7172 KB)...
OKAY [ 0.836s]
writing 'recovery'...
OKAY [ 0.458s]

finished. total time: 1.295s
INFO:phablet-flash:Booting /home/igor/Downloads/phablet-flash/ubuntu-touch/20130905.1/saucy-preinstalled-recovery-armel+grouper.img
downloading 'boot.img'...
OKAY [ 0.828s]
booting...
OKAY [ 0.399s]
finished. total time: 1.227s
INFO:phablet-flash:Clearing /data and /cache
error: device not found
ERROR:phablet-flash:Command 'adb shell mount /data' returned

non-zero exit status 255


After that, it rebooted the phone, and it the only thing it showed me was a black screen with a picture of a lock and the word "Google" in the middle. The phone did not reacted on pressing any buttons, including the power button. adb didn't see the device:



~ $ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached


~ $


, which prevented me from restoring android as it described at https://wiki.ubuntu.com/Touch/Install. I tried to reboot it by holding power button, it didn't help. Than I rebooted by unplugging the battery. After that, I tried to boot in recovery mode, but it only showed me aforementioned black screen. adb still doesn't see the device.



What can I do now? Where else can I seek for help?

404 Not Found for Greek Language installation

I want to install Greek language support for my Ubuntu 12.10. I go through system settings -> Language Support, check the Greek but when the system tries to download the files I get a:



Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/firefox/firefox-locale-el_18.0.1+build1-0ubuntu0.12.10.1_amd64.deb 404  Not Found


I tried to hit the URL from my browser and I still get a 404. My internet connection works fine.
I'm pretty new at Ubuntu so can you please help me with that? Am I doing something wrong?

14.04 - Will UEFI boot with EFI partition + MBR partition table work (instead of GPT)?


Is it a requirement for a drive to use GPT partition table if wanted use UEFI boot? Or is it still possible to use MBR partition table as format for drive's partitions and have bootloader saved in a separated EFI partition?


As I understand for now, MBR contains both, information about drive's partitions and boot loader. But UEFI firmware requires boot loader to be placed in separated EFI (FAT32) partition. So if UEFI firmware supports MBR format as a format for drive's partitions, everything should be ok, am I correct?


UPDATE:
Background: I have single Xubuntu 14.04 installation on SSD drive, currently it's using BIOS boot with MBR partition table type. I'd like to convert to UEFI boot, I'm wondering if it's possible to continue to safely use MBR as partition table type with separated EFI partition created for boot loader.
I'm familiar with BIOS-UEFI conversation process.


Thank you for your answers!



It's theoretically possible to use an MBR partition table in an EFI-mode boot; however, almost nobody does this, so it's poorly tested. Also, in my own (brief) tests with this method, it seems to produce more problems related to boot loader naming and NVRAM entries (as managed by efibootmgr in Ubuntu). Thus, it's not something I recommend. The saying "if it ain't broke, don't fix it" probably applies to your case -- you say you'd "like" to convert to EFI-mode booting, but you've provided no reason for this. In the absence of such a reason, I'd say it's inadvisable to do the conversion, since nothing's "broke."


Also, if you set up an EFI-mode boot from an MBR disk, I can't promise that future Ubuntu updates will like it. It's conceivable that the Ubuntu installer or update process would choke, possibly creating serious problems down the line. OTOH, it all might go just fine. That's part of why "untested" in this context translates to "you probably don't want to try this" -- there are just too many unknowns, both now and in the future.


That said, if you must do such a conversion, you can certainly try it with an MBR partition table. If you run into problems with NVRAM entries not "taking," you should then do an MBR-to-GPT conversion. Alternatively, you can just plan to do the conversion from the start. See my Web page on the subject for details. Note that partition table data structures are actually quite simple, and the conversion requires no changes to filesystems. Thus, the odds of a catastrophic failure are quite low. If you use gdisk, a problem is most likely to turn up when the program loads the MBR data structures and converts in memory to GPT. At this point, you'll be warned, or at least be told of the problem if you do a disk verification (v in the main menu), so you can abort the operation before writing anything back to disk. OTOH, no partitioning operation is entirely risk-free, and if a problem does occur, it can be catastrophic, so having backups is wise.


How to create .deb package without packages for the dependencies available?

At the moment, I am diving into the .deb packaging system. I'm very new to this, so I have a question to you because I couldn't find an accurate answer on other sites.



Assume I'd like to create a (distributable) .deb package for Software A with pbuilder. The dependencies are libqrencode, libconfig and libABC. For the first to dependencies, there are already packages in the official Ubuntu repositories. So, I only have to add those two libs to the debian/control file (and pbuilder does the rest). But for libABC there's no .deb package in the offical repository and also no PPA etc.



The only thing I have is the source code from GitHub for example.



So, my question is how should I handle this?





  • Do I have to compile libABC from source on my system? But how do I "add" it to pbuilder then?

  • Or do I also have to create another .deb package for libABC first? How could I "add" it to pbuilder? And what if libABC has dependencies without existing .deb packages as well?

  • Or is it a completely different approach?



Thanks in advance for your help!

Can't get wireless to work on an Acer Aspire 4310.. older answers didn't work


I am having trouble with the wireless card on my mom's acer aspire 4310.. I got her to use linux on her old toshiba and she wants it on this Acer too but I'm having trouble getting the wireless to work.. I am currently connected via ethernet..


Here is the lspci output


00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
0a:06.0 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
0a:06.2 SD Host controller: O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)
0a:06.3 Mass storage controller: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)

And this is what rfkill all says


0: acer-wireless: Wireless LAN     Soft blocked: no    Hard blocked: no

At first it was soft blocked then I ran rfkill unblock wifi but it still won't work! There are no wireless networks in the panel and the system settings only shows the ethernet connection... I have installed the sta drivers and that didn't help either.. any ideas?


Additional details: fresh ubuntu 13.10 install and fully updated



Your Broadcom 4311 needs firmware and to have the STA driver removed. Please get a temporary wired ethernet connection, open a terminal and do:


sudo apt-get purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and tell us if it is working.


Thursday, December 26, 2019

bug reporting - Window glitches and lagging problems in Ubuntu 14.04

I'm currently using Ubuntu 14.04 for some development needs and I often encounter with lagging issues and glitches as shown below: (see in the titlebar and icons and in the eclipse in the background)



enter image description here



I've no idea what it's all about. Can you suggest me what can I do?

Black screen on latest Nvidia/Ati Cards when starting LightDM/Ubuntu




Today I installed an Nvidia GT440 on my computer, changing the one that existed there, an Nvidia 9500GT. After changing it I started getting a problem where the screen just went black when loading the lightdm login screen (Where I punt my user and password). The thing is, if I disconnect the VGA cable and connect it again I get to see the lightdm greeter and everything works perfect.



The problem is that I have to connect/disconnect every time I reboot the PC.



I tried installing the 285.xx drivers. Same problem. I removed the Nvidia drivers installed with Jockey, rebooted, same problem. I install the current 280.xx again, same problem.



After all that I installed a fresh install of Ubuntu, selected to install the Nvidia drivers while installing it from the livecd. After booting the same problem appeared.



Dmesg does not say anything wrong about it. Same goes for the log from Jockey.




What else should I check or what to do to solve it.



Just to clarify, this does not happen BEFORE the lightdm greeter appears. Am guessing before the actual use of the video card with X starts with all the 2D/3D stuff that is used in ligthdm and unity. I can use any tty and even see the Ubuntu logo when starting.



UPDATE: When I open a game in fullscreen the problem appears again. I have to unplug the monitor cable and plug it back in to see the game. Then when I quit the game I have to do it again to see the desktop.



UPDATE 2: Today I bought a HDMI cable, connected the video card to the TV am testing it with and it actually did log in correctly without any black screen but it shows the resolution a little over the actual size of the screen. So I see only half of the launcher since the left side of it is hidden outside of the real resolution and the top bar is beyond the resolution. So the black screen is related to the VGA connection.



UPDATE 3 - After installing 12.04 and updating or installing 12.10, black screen problems are gone.




This has since been solved by installing and updating the Nvidia driver to 290.xx or greater.



To do this follow this steps:



The launchpad https://launchpad.net/~ubuntu-x-swat/+archive/x-updates has the latest Nvidia Drivers (And Ati, And Intel, And...)



In a terminal execute: sudo add-apt-repository ppa:ubuntu-x-swat/x-updates



Update your repositories either by clicking on the "Check" button in the Update Manager or running in a terminal sudo apt-get update




The Nvidia driver version 290.xx should appear available. Install it, reboot, done.



This solved the black screen problem using a VGA cable with a TV (Might also solve other problems mentioned in the changelog)



NOTE - This did not solve the problem that some users are having that the resolution is outside of the border of the TV. As Oli mentions in this question HDTV resolution issue the overscan problem is what I am talking here. Although in my case there is no way to configure or tune this with the TV (My case Soneview 32')



More information in How do I install the Nvidia drivers?


sudo - How to run applications as root?

I am having some strange issue with Kate and Kwrite. When I click on Open File, it crashes with segmentation fault.



I am a complete newbie to Linux, and I think the issue is that I am not running the application as root.



How do I run applications as root in Ubuntu? Is it bad practice to do this? What is the purpose of the whole root thing, where even though we need to use root so frequently, it is not utilized as default?

system installation - Ubiquity mounts wrong ESP during install



I'm installing Ubuntu 16.04 onto an external HDD (sdb). My computer also has an internal Windows 10 HDD (sda).




When at the partitioning stage, I chose for the boot loader to be installed onto the external HDD (sdb).



When Uniquity is installing the system, it mounts Windows 10's ESP (sda2) and copies the Ubuntu/grub boot loaders over, when it should have mounted the ESP created on the external HDD (sdb1). /dev/sda2 is the Win10 ESP and it's mounted to /target/boot/efi. /dev/sdb1 is the correct ESP but is not touched.



Here's lsblk:
lsblk



Because the boot information is not on the external HDD, the Windows 10 disk must be present to boot Ubuntu because the boot information pointing to Ubuntu is located on the Windows ESP - not exactly optimal.




The question is can I force Ubiquity to use sdb1 as the ESP. It makes sense to by default because it's where I chose to install grub but apparently not.



Ubiquity is version 2.21.63.
I'm revisiting this issue because I need Ubuntu on this computer. I filed a bug report originally but it is still undecided/unassigned.



Well I didn't find a solution, but I found a workaround.




  1. After booting the live cd, run dmesg | grep ata to find the id for the internal drive. In my case it was ata1.00

  2. Reboot the live cd but hit e to edit the grub configuration


  3. Add libata.force=1.00:disable to the end of linux. 1.00 comes from ata1.00

  4. Hit f10 and the machine should boot and Linux should not see the drive - check with lsblk

  5. Continue installation, Ubuntu sees the external as /dev/sda



I would also recommend adding this to the installed system's grub configuration so it doesn't even see the internal drive. Don't want anything happening to it.



Thanks to https://askubuntu.com/a/387261/440238 for the libata.force=1.00:disable part.


drivers - Nvidia Graphic installed?

I have an Optimus graphic card and had the blank screen issue after installing Nvidia drivers.



I think I installed Bumblebee drivers correctly and everything is running correctly. But, in the Graphics category of System Details, it says graphic driver Unknown.



Questions:




  1. Was bumblebee installed correctly and do I now have power management working in my laptop?


  2. Is Nvidia now the primary graphic card (the laptop also has Intel mobility)?


  3. And if not, if I want to run apps with it, I just have to write optirun in the terminal?



updates - How to resolve "No suitable download server found" when updating?




I am a new user to Ubuntu 12.04. I have already connected to the Internet (without any firewall or proxy) and can browse the web. But whenever I am trying to update Ubuntu or trying to select the mirror for my location (Singapore) it just gives this error:




NO SUITABLE DOWNLOAD SERVER FOUND. PLEASE CHECK YOUR INTERNET CONNECTION.




What can I do to fix this?



To update by terminal ,open Terminal by ctrl+alt+T

Type



 sudo apt-get update


It will ask password, give password.
Packages will be automatically updated.



To Update by Synaptic




open synamptic , Click on reload.... It will show you list of packages that are available in new version. So are newbie to ubuntu, install synaptic by



Open Terminal,
type
sudo apt-get install synaptic


apt - gpg: Fatal: libgcrypt is too old (need 1.7.0, have 1.6.5)

after the upgrade to yakkety I cannot safe update or upgrade the system.
The output of apt update (and aptitude and synaptic etc) is always the same:


GPG error: http://01.archive.ubuntu.com/ubuntu yakkety-updates InRelease: Unknown error executing apt-key


the execution of apt-key update give me:


gpg: Fatal: libgcrypt is too old (need 1.7.0, have 1.6.5)


Quite strange...I tried to install manually libgcrypt20 and still the output is the same...


so I checked with
dpkg -p libgcrypt20 that gives me:


dpkg-query: package 'libgcrypt20' is not available


But according to synaptic the version 1.7.2-2ubuntu1 is installed...


I already tried ldconfig.


I cannot update in not safe mode because I am in a non democratic country, and I am afraid for my system.


Thks.
c.

14.04 - Dual Boot: Ubuntu installation not detecting existing windows operating system

In my attempt to set up a dual boot system, by installing Ubuntu 14.04 onto my system with Windows 7, I have encountered a pretty stubborn problem.


I have loaded ubuntu into a bootable USB device.


When installing Ubuntu, whether through "try ubuntu w/o installing" or the other "install Ubuntu" option, Ubuntu never presents the "install alongside windows option".


The only two options that I have are the 1. erase all data and install ubuntu on drive and 2. do other stuff (display partitions)




Looking at posts by folks who have encountered this issue in the past, I have attempted some of the various suggested solutions.. without avail.


fixparts
remove dmraid


I have a boot repair log up:
http://paste.ubuntu.com/7522909/


Any help would be greatly appreciated!

Wednesday, December 25, 2019

Can We enable Notifications About Oracle Java Update In Linux?



In windows we get Notification that newer java version is avaliable like this enter image description here.



How Can I get the same Notifications about java in Linux.



Special for oracle jdk.I had Installed oracle Jdk by in this machine




$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer


And by extracting tar file in /opt in other machine.



Also will package oracle-java8-installer will upgrade my java ?? Cause Last time when oracle-java8-installer upgraded it didn't download any tar file.



As far as I can tell (and have experienced), oracle-java8-installer will update your Java version for you.




Whenever a new version comes out, the installer is updated with the new information. The next time you run sudo apt update, this new installer version will be reflected. Running sudo apt upgrade will install the new installer, which will then (in turn) install the new version of Java.



Note that this will only work if you've installed Java through the package. If you used the raw tarball, this will not work nearly as well (or at all).



It is important to note, however, that this will not increase your "major" version (so Java 8 will never upgrade to Java 9, unless you install Java 9's installer).



This method of Java installation offers no notification, so you just need to run the apt updater. Depending on your system configuration, Ubuntu may offer a general update notification. See the Software and Updates app for this setting.







Generally speaking, very few packages installed through Apt will have their own update notification system (though some, especially launcher-only packages usually will). Instead, apt will take care of things and bundle it with all the other updates. To some, this centralized package system is one of the biggest benefits of Linux over other operating systems.


system installation - Lubuntu 14.04 cannot try Lubuntu without installing-error messages

I have Lubuntu 13.10 installed. Works great. I downloaded Lubuntu 14.04 and burned to disc.



To test I tried the option to try Lubuntu without installing.



I got several error messages which I did not understand.



The first error message contained the following:




"Kernel Panic-not syncing"



There were other error messages that followed plus a lot of codes.



Then the last error message contained the following:



"drm_kms_helper: panic occurred switching back to text console"



I had to cold reboot. Nothing worked. Computer completely froze including t




he keyboard, mouse and I could not even eject the disc until the cold reboot.



This did not happen with 13.10 which installed smoothly with no problems 6 months ago.



Sounds to me like a kernel problem although I would think it would work just to try Lubuntu without installing. I remember trying a pre-release Kubuntu 14.04 and I was able to try it without installing just fine.



Is there a fix or should I attempt to download the image again and re-burn to disc.



Please advise if possible. I was very suprised it did not work considering Lubuntu 13.10 and a pre-release Kubuntu 14.04 worked.




Thank you in advance for any assistance.

boot - How to hide grub unless key is pressed?

I have 2 OSs Windows 8 and Kubuntu 16.04. Kubuntu is my primary OS.
I would like my laptop to boot directly into Kubuntu, unless I press SHIFT key during boot to make Grub menu visible.
Again. I want grub menu with OSs list visible, only when I press SHIFT or any other key during boot.



I followed instructions in Hide GRUB2 menu UNLESS you hold down Shift key: how to make this happen? and it didn't work as I wanted.




I don't even want to feel that the grub is there, so the following values are required.



GRUB_HIDDEN_TIMEOUT=0.0
GRUB_TIMEOUT=0.0


Apparently linux doesn't give you the freedom it tells you it does. Because if it did /etc/grub.d/30_os-prober wouldn't change the timeout on its own.



if [ "\${timeout}" = 0 ]; then    

set timeout=10


Is there any easy way to achieve what I want? Thanks in advance.



EDIT:



It does not work.
Additionaly according to
info -f grub -n 'Simple configuration'




'GRUB_HIDDEN_TIMEOUT'
Wait this many seconds before displaying the menu. If is
pressed during that time, display the menu and wait for input
according to 'GRUB_TIMEOUT'. If a hotkey associated with a menu
entry is pressed, boot the associated menu entry immediately. If
the timeout expires before either of these happens, display the
menu for the number of seconds specified in 'GRUB_TIMEOUT' before
booting the default entry.


If you set 'GRUB_HIDDEN_TIMEOUT', you should also set
'GRUB_TIMEOUT=0' so that the menu is not displayed at all unless
is pressed.

This option is unset by default, and is deprecated in favour of the
less confusing 'GRUB_TIMEOUT_STYLE=countdown' or
'GRUB_TIMEOUT_STYLE=hidden'.


I set GRUB_TIMEOUT=5 and GRUB_HIDDEN_TIMEOUT=3 and grub menu is shown for... 3 seconds!?




Clearly people behind grub, screwed it up.

How to correctly install CrashPlan backup software on Ubuntu 16.10?




I downloaded CrashPlan for Linux and executed sudo ./install.sh inside the uncompressed archive.



CrashPlan wants to use the following installation settings:



CrashPlan will install to: /usr/local/crashplan
And put links to binaries in: /usr/local/bin
And store data in: /usr/local/var/crashplan
Your init.d dir is: /etc/init.d
Your current runlevel directory is: /etc/rc5.d



Are these settings correct to be used on Ubuntu 16.10?



Yes. That's looking very reasonable.


Tuesday, December 24, 2019

14.04 - Install Ubuntu from Ubuntu without reboot



I have an empty harddrive and am already running Ubuntu Trusty Tar 14.04.3 LTS (originally 14.04 and regularly upgraded). I would like to install the same version on the empty harddrive but without rebooting (many things running right now). Is there a package that can be installed that will install Ubuntu on another harddrive? I would like to avoid this long procedure for 12.04 (I am installing 14.04.3) described by an answer here and do it direct without setting up a virtual machine as suggested by the other answer there.



You can clone the drive you are using onto the other one. It takes a long time possibly a day or two if you have a large drive but it is very simple to do. The procedure assumes the hardware is very similar or in the best case the same.



You most likely have two drives listed in your /dev directory. This can change depending on hardware but /dev/sda is the most common. If you look there is probably a /dev/sda1 and /dev/sda2 or more /dev/sda# devices. These are your partitions on the drive. Then if the other drive is empty you will have a /dev/sdb but no /dev/sdb# devices. It's critical that you understand which drive is which since this procedure will copy one drive to the other and doing it backwards will destroy all your data. With all changes to file systems I suggest you backup your data before you start.




For this example I'm going to assume /dev/sda is your primary drive and /dev/sdb is the second drive you want Ubuntu on. You can use a tool called dd to copy the drive byte for byte.



Basic format is this: dd if=/dev/sda of=/dev/sdb bs=2M



"if" is your input file
"of" is your output file and what you will over write
"bs" is block size. Default is 512 but you can speed it up by increasing it. I usually use 2M.



The command will have no output till it's done but your hard drive will start spinning at near max until it's done. After wards you should be able to swap the secondary drive into the primary drive's place and boot. If you want a dual boot system this is not the solution for you.


grub2 - Repairing Grub - Separate Partition - Dual Boot Windows


I am attempting to repair grub on separate /boot partition without removing Windows Boot Loader.



  • I installed Ubuntu 12.04 after Windows 8 on 250GB SSD drive.

  • Grub installation failed during Ubuntu Install on separate /boot partition (I chose to skip grub install after this happened)

  • However, Grub does seem to be installed on that separate /boot partition. However, grub command line is loaded when I boot to it. I don't think there are any OS entries.

  • I created a entry in Windows Boot Loader directly to Ubuntu OS partition, but it does same thing: grub command line.

  • I am following instructions here with Live USB:


I'm worried that this command will overwrite MBR and Windows Boot Loader:



sudo grub-install /dev/sda



I tried this, but it tells me that installing grub to a partition is not recommended:



sudo grub-install /dev/sda3




  1. Do I even need to do an install?

  2. Do I just need to update config with OS entries?

  3. I've seen chroot mentioned.


Here is my fdisk -ls:


Device    Boot      Start         End      Blocks   Id  System
/dev/sda1 * 2048 718847 358400 7 HPFS/NTFS/exFAT
/dev/sda2 718848 439648255 219464704 7 HPFS/NTFS/exFAT
/dev/sda3 439648256 440135679 243712 83 Linux
/dev/sda4 440137726 488396799 24129537 5 Extended
/dev/sda5 440137728 480583679 20222976 83 Linux
/dev/sda6 480585728 488396799 3905536 82 Linux swap / Solaris

Any help is much appreciated!



I ended up just re-installing Ubuntu and did not include a separate /boot partition this time. Grub installed to my Ubuntu partition and and Windows boots to that.


14.04 - list all the ppa repositories added to my system


How can I list all the ppa repositories added to my system and save it to a .txt file, so that I don't want to spend my time in searching for ppa's for fresh installations and i can just select a ppa line in my .txt file and append to the command sudo add-apt-repository? Also is there any other ways to do this in which i dont want to give the gpg keys manually?



From How can I get a list of all repositories and PPAs from the command line into an install script?


Part of the answer looks to have what you are looking for:


#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done

Save this as listppa.sh


listppa.sh > installppa.sh

This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:


installppa.sh

12.04 - MongoDB could not connect local server


I had mongdb installed and evrything was working fine. I wanted to delete the mongodb lock. By mistake the directory /var/lib/mongodb/ got deleted.


So, I uninstalled mongo db and installed again. But now i always keep getting this error:


Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
exception: connect fail

The error remains same even if I try to login from terminal or rockmongo or my application.
I am using ubuntu12.04 and have latest version of mongo.



You get the connect failure because the server is not running. Run this:


sudo service mongodb restart

If that does not succeed then you will need to examine the log files for the server to see what is stopping it from starting. You can find the log in /var/log/mongodb/mongod.log and if it is not an obvious cause, then please add the relevant snippet to your question and I'd be happy to take a look.


If I were to guess based on your description, I would suspect you did not set the correct permissions on /var/lib/mongodb - when you recreated it. It should look like this:


drwxr-xr-x 4 mongodb mongodb 4096 Nov 26 18:52 mongodb

If it has incorrect permissions, then you can fix it with the following command:


sudo chown -R mongodb:mongodb /var/lib/mongodb

Monday, December 23, 2019

partitioning - Persistent mode on USB has different data between computers

Using LiveLinux USB creator, and this tutorial, I turned a 32GB flash drive into a live Ubuntu USB with a 26GB casper-rw partition. This works on the computer that I created the USB with (kept all my data between sessions), but when I boot the USB from other computers it loads different data. All other computers seem to share one set of data, and the original computer seems to have its own set of data. I checked the persistant mode boot options, and they're exactly the same.



This is what the partitions on the USB look like




My only guess is that its storing all the other computers data in the 4.7 GB partition, and storing the original computer's data in the casper-rw partition, but I have no idea.



Some addition Information. I tried the USB on 3 other computers that originally booted either Vista, Windows 7, or Windows 8, and use either BIOS or UEFI. None of them made a difference. Computer 1 (the original) had its own data, and computers 2, 3, and 4 all shared a different set of data.

unity - Background and pointer after ubuntu 14.04 login

I updated to 14.04 by reinstalling over the old 12.04 install.


After using the system for a few weeks I log in one day and there is no desktop / unity at all. Just a background and mouse pointer. The guest session logs in fine.


I've tried various posts (Problems after upgrading to 14.04 (only background and pointer after login)) etc but it seems I'm shooting in the dark...


In the syslog there are errors about compiz.desktop killed by signal 9 and respawning too quickly but I can't see any fixes for my case.


I should add that a guest session logs in fine and the unity desktop displays as per normal...


Can anyone shed any light on this?


Thanks,


Adam

installation - How to install Virtual box on Ubuntu

Can someone help me install Virtual box on my Ubuntu machine? (12.10). I know you can install it from the software centre but I read somewhere that their are more files to add or something? Can someone help me please? All help will be greatly appreciated! Thank you so very much! Have a wonderful day!

lubuntu - How to make my maximum screen resolution to be detected by Ubuntu?



I just installed Lubuntu 13.10 and I have a problem - On Windows I can go up to 2048x1536, but the display setting on Lubuntu only lets me go up to 1024x768.
I already ran the update and upgrade, and the software thing shows no additional updates.



My display is: Intel G965 Express [No Nvidia or AMD graphics]



It is probable that your graphic driver is not detecting that resolution. Follow the instructions below; it might help. It helped me in my Ubuntu(using unity) which installed in my desktop that has a dedicated AMD Radeon 5570HD(which uses Gallium REDWOOD drivers i.e the default open source drivers). First type this in your terminal(You can open terminal with Ctrl+Alt+t) :-




cvt 2048 1536


You will get something like this :-



# 2048x1536 59.95 Hz (CVT 3.15M3) hsync: 95.45 kHz; pclk: 267.25 MHz
Modeline "2048x1536_60.00" 267.25 2048 2208 2424 2800 1536 1539 1543 1592 -hsync +vsync



Now do this:-



xrandr --newmode "2048x1536_60.00"  267.25  2048 2208 2424 2800  1536 1539 1543 1592 -hsync +vsync


Then this:-



xrandr 



You will get an output similar to this(maybe not exactly this):-



Screen 0: minimum 320 x 200, current 1368 x 768, maximum 8192 x 8192
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 connected primary 1368x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0
800x600 60.3 56.2
848x480 60.0
640x480 59.9

1368x768_60.00 59.9*


Here the connected monitor is DVI-0 according to the above output. So one would do this next:-



xrandr --addmode DVI-0 2048x1536_60.00


Instead of DVI-0 you should type in whichever is your connected monitor. This should work. I am assuming from your description above that 2048x1536 works on your monitor. If it doesn't you can try whichever resolution will work for you.




Now if you want this to take effect every login without having to type all of this again, follow the instructions below.



Open gedit or any other text editor. Type the following:-



#!/bin/sh
xrandr --newmode "2048x1536_60.00" 267.25 2048 2208 2424 2800 1536 1539 1543 1592 -hsync +vsync
xrandr --addmode DVI-0 2048x1536_60.00
xrandr --output DisplayPort-0 --off --output DVI-0 --mode 2048x1536_60.00 --pos 0x0 --rotate normal --output HDMI-0 --off



You must edit the last line according to your PC. Save the above file as lightdmxrandr.sh in /usr/bin .Then make it executable by this command:-



sudo chmod a+x /usr/bin/lightdmxrandr.sh


Then open /etc/lightdm/lightdm.conf(If this file is not there then read the "PS" below) by the command:-



sudo gedit /etc/lightdm/lightdm.conf



You can use your own text editor instead of gedit. The file must contain something like this:-



[SeatDefaults]
user-session=ubuntu


Add the below lines to the file:-



greeter-session=unity-greeter
display-setup-script=/usr/bin/lightdmxrandr.sh

session-setup-script=/usr/bin/lightdmxrandr.sh


Now save the file and reboot. You must have your desired resolution both in the login screen and your desktop session. This should most probably work. But if it doesn't then read on and follow the below instructions.



Open a terminal(if you are stuck on the login screen and you can't open a terminal then drop into a tty with Ctrl+Alt+F1) and type in the following :-



sudo nano /etc/lightdm/lightdm.conf



This will open the lightdm.conf file which we edited above. Now remove the below line alone from the file:-



session-setup-script=/usr/bin/lightdmxrandr.sh


Press Ctrl+x to exit the file and then press y to save it before exit which it will prompt you to. Then type :-



sudo reboot



to reboot your PC. This should get you into your desktop(If it doesnt read "PS" below). Now go to System Settings>Displays. You might find your desired resolution there(This might happen since we ran the script above with lightdm.conf). Then select that resolution and reboot to have your desired resolution. But if you don't find your desired resolution there, you may try this.



Open Startup Applications from dash. This should give you something like this(but not exactly like this) :-



enter image description here



Press Add. You will get this :-



enter image description here




Give some name you like. Then press browse and select the script which we created(Remember that we saved it as /usr/bin/lighdmxrandr.sh ). If you want give a description. Then press Add. Before closing Startup Applications check if the entry you just added has a tick mark next to it. Now reboot your PC. This should get you the desired resolution in both the login screen as well as in the desktop.



PS:-




  1. If /etc/lightdm/lightdm.conf ain't there then you must be having /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf . Edit this file instead of lightdm.conf .

  2. If none of the above works and you are stuck at login then drop into a tty and type :-



sudo nano /etc/lightdm/lightdm.conf




Now remove all the editing we did and press Ctrl+x and then press y to save the file. Now type :-



sudo reboot


This should get you back to your desktop, but, of course, without your desired resolution and with your default resolution. Then try System Settings>Displays and check if your desired resolution is there(This might happen since we ran our script with lighdm.conf ). Now select that resolution and reboot. You will get your desired resolution now.



Credits go to these three questions:-





No Wireless LAN HP Pavillion dv6000


Possible Duplicate:
How can I get Broadcom BCM4311 Wireless working?







the physical switch is in the on position but the indicator light is red meaning its not on. when i boot into windows vista it works normal. i do not see any networks nor can i connect to anything. wired Internet works.

14.04 - How do I keep my Wifi from dropping out?



I have a System76 Gazelle, gapz8, running Ubuntu 14.04. My wifi keeps dropping out at random intervals. I have a new router, so I don't believe that's the issue, but I am in an apartment building, so the signals are probably crowded. My computer still registers the wifi as connected, but stops sending and receiving data. I've found that disconnecting from the wifi and reconnecting fixes the problem, but it can happen again within minutes. Does anyone understand the problem or how to fix it? I'm happy to provide more information if that will clarify the issue, just tell me what.



As requested below, the results from the "wireless script""



########## wireless info START ##########


Report from: 28 Sep 2014 23:17 EDT -0400

Booted last: 28 Sep 2014 20:28 EDT -0400

Script from: 20 Sep 2014 23:04 UTC +0000

##### release ###########################

Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS

Release: 14.04
Codename: trusty

##### kernel ############################

Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, acpi_os_name=Linux, acpi_osi=, vt.handoff=7

##### desktop ###########################


Ubuntu

##### lspci #############################

02:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 2230 [8086:0887] (rev c4)
Subsystem: Intel Corporation Centrino Wireless-N 2230 BGN [8086:4062]
Kernel driver in use: iwlwifi

03:00.2 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0a)

Subsystem: CLEVO/KAPOK Computer Device [1558:2706]
Kernel driver in use: r8169

##### lsusb #############################

Bus 002 Device 003: ID 5986:0401 Acer, Inc
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse 6000 Reciever
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
Soft blocked: no

Hard blocked: no

##### lsmod #############################

iwldvm 232285 0
mac80211 630653 1 iwldvm
iwlwifi 169932 1 iwldvm
cfg80211 484040 3 iwlwifi,mac80211,iwldvm
wmi 19177 0


##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0 Link encap:Ethernet HWaddr
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::626c:66ff:fe30:1786/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:132928 errors:0 dropped:0 overruns:0 frame:0
TX packets:81169 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000
RX bytes:167705002 (167.7 MB) TX bytes:10766737 (10.7 MB)

##### iwconfig ##########################

eth0 no wireless extensions.

lo no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Router 2: Electric Boogaloo"

Mode:Managed Frequency:2.417 GHz Access Point:
Bit Rate=65 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=63/70 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:67 Missed beacon:0

##### route #############################


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0

##### resolv.conf #######################

nameserver 127.0.1.1

##### nm-tool ###########################


NetworkManager Tool

State: connected (global)

- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: r8169
State: unavailable
Default: no

HW Address:

Capabilities:
Carrier Detect: yes

Wired Properties
Carrier: off

- Device: wlan0 [Router 2: Electric Boogaloo] ---------------------------------
Type: 802.11 WiFi

Driver: iwlwifi
State: connected
Default: yes
HW Address:

Capabilities:
Speed: 115 Mb/s

Wireless Properties
WEP Encryption: yes

WPA Encryption: yes
WPA2 Encryption: yes

Wireless Access Points (* = current AP)
Lucille: Infra, , Freq 2427 MHz, Rate 54 Mb/s, Strength 75 WPA WPA2
DG1670A82: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 62 WPA2
Mcchacko-2G: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 52 WPA2
DIRECT-roku-900: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 50 WPA2
B4R87: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 44 WPA2
NETGEAR65: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 42 WPA2

cheeky: Infra, , Freq 2462 MHz, Rate 54 Mb/s, Strength 27 WPA2
DG1670A22: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 25 WPA2
*Router 2: Electric Boogaloo: Infra, , Freq 2417 MHz, Rate 54 Mb/s, Strength 77 WPA2
Wellfords: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 57 WPA WPA2
RubyWillow: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 40 WPA WPA2
Waffle House: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 27 WPA WPA2
Linksys e3200: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 27 WPA WPA2
RubyWillow-guest:Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 45
TG1672G12: Infra, , Freq 2427 MHz, Rate 54 Mb/s, Strength 34 WPA2
55B2Q: Infra, , Freq 2462 MHz, Rate 54 Mb/s, Strength 34 WPA2

luna: Infra, , Freq 2437 MHz, Rate 54 Mb/s, Strength 30 WPA WPA2
Linksys e3200-guest: Infra, , Freq 2412 MHz, Rate 54 Mb/s, Strength 27

IPv4 Settings:
Address: 192.168.1.5
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.1

DNS: 192.168.1.1


##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############


[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/Apple Network 5df1bd]] (600 root)

[connection] id=Apple Network 5df1bd | type=802-11-wireless
[802-11-wireless] ssid=Apple Network 5df1bd | mac-address=
[ipv4] method=auto
[ipv6] method=auto

[[/etc/NetworkManager/system-connections/200W102nd3E]] (600 root)
[connection] id=200W102nd3E | type=802-11-wireless
[802-11-wireless] ssid=200W102nd3E | mac-address=
[ipv4] method=auto
[ipv6] method=auto


[[/etc/NetworkManager/system-connections/NETGEAR49]] (600 root)
[connection] id=NETGEAR49 | type=802-11-wireless
[802-11-wireless] ssid=NETGEAR49 | mac-address=
[ipv4] method=auto
[ipv6] method=auto

[[/etc/NetworkManager/system-connections/NYU-ROAM3]] (600 root)
[connection] id=NYU-ROAM3 | type=802-11-wireless
[802-11-wireless] ssid=NYU-ROAM3 | mac-address=

[ipv6] method=auto
[ipv4] method=auto

[[/etc/NetworkManager/system-connections/Router 2: Electric Boogaloo]] (600 root)
[connection] id=Router 2: Electric Boogaloo | type=802-11-wireless
[802-11-wireless] ssid=Router 2: Electric Boogaloo | mac-address=
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################


Region: America/New_York (based on set time zone)

country 00:
(2402 - 2472 @ 40), (3, 20)
(2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
(2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS


##### iwlist channels ###################

eth0 no frequency information.

lo no frequency information.

wlan0 13 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz

Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz

Current Frequency:2.417 GHz (Channel 2)

##### iwlist scan #######################

Channel occupancy:

2 APs on Frequency:2.412 GHz (Channel 1)
1 APs on Frequency:2.417 GHz (Channel 2)
1 APs on Frequency:2.427 GHz (Channel 4)
7 APs on Frequency:2.437 GHz (Channel 6)

1 APs on Frequency:2.457 GHz (Channel 10)
1 APs on Frequency:2.462 GHz (Channel 11)

eth0 Interface doesn't support scanning.

lo Interface doesn't support scanning.

wlan0 Scan completed :
Cell 01 - Address:
Channel:2

Frequency:2.417 GHz (Channel 2)
Quality=60/70 Signal level=-50 dBm
Encryption key:on
ESSID:"Router 2: Electric Boogaloo"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000226ee9d93
Extra: Last beacon: 44ms ago

IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 02 - Address:
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=44/70 Signal level=-66 dBm
Encryption key:on
ESSID:"Mcchacko-2G"

Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000051d26350a2
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK

Cell 03 - Address:
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=48/70 Signal level=-62 dBm
Encryption key:on
ESSID:"Wellfords"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master

Extra:tsf=00000000bfdb08ba
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK

Cell 04 - Address:
Channel:4
Frequency:2.427 GHz (Channel 4)
Quality=58/70 Signal level=-52 dBm
Encryption key:on
ESSID:"Lucille"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master

Extra:tsf=0000001d3ad33a1d
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK

Cell 05 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=44/70 Signal level=-66 dBm
Encryption key:on
ESSID:"RubyWillow"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master

Extra:tsf=000000d59bbc1370
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK

Cell 06 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=50/70 Signal level=-60 dBm
Encryption key:on
ESSID:"NETGEAR65"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master

Extra:tsf=000002fda7d406be
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 07 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=32/70 Signal level=-78 dBm

Encryption key:on
ESSID:"luna"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000007386e99
Extra: Last beacon: 692ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP

Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Cell 08 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=53/70 Signal level=-57 dBm

Encryption key:on
ESSID:"DG1670A82"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000002913cbce2ae
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP

Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 09 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=41/70 Signal level=-69 dBm
Encryption key:on
ESSID:"DIRECT-roku-900"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s

Mode:Master
Extra:tsf=000001bb4835fa76
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 10 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)

Quality=44/70 Signal level=-66 dBm
Encryption key:off
ESSID:"RubyWillow-guest"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000000d59bbc2e70
Extra: Last beacon: 44ms ago
Cell 11 - Address:

Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=36/70 Signal level=-74 dBm
Encryption key:on
ESSID:"B4R87"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000077da1f65f7

Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 12 - Address:
Channel:10
Frequency:2.457 GHz (Channel 10)
Quality=24/70 Signal level=-86 dBm
Encryption key:on

ESSID:"Trust but Verify 2"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000002b08ecdcda
Extra: Last beacon: 480ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP

Authentication Suites (1) : PSK
Cell 13 - Address:
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=30/70 Signal level=-80 dBm
Encryption key:on
ESSID:"cheeky"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s

Mode:Master
Extra:tsf=000001c711ca046e
Extra: Last beacon: 44ms ago
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK

##### module infos ######################


[iwldvm]
filename: /lib/modules/3.13.0-36-generic/kernel/drivers/net/wireless/iwlwifi/dvm/iwldvm.ko
license: GPL
author: Copyright(c) 2003-2013 Intel Corporation
version: in-tree:
description: Intel(R) Wireless WiFi Link AGN driver for Linux
srcversion: CC4D1BA11C1EF73A6ABDE53
depends: iwlwifi,mac80211,cfg80211
intree: Y
vermagic: 3.13.0-36-generic SMP mod_unload modversions

signer: Magrathea: Glacier signing key
sig_key: 38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo: sha512

[mac80211]
filename: /lib/modules/3.13.0-36-generic/kernel/net/mac80211/mac80211.ko
license: GPL
description: IEEE 802.11 subsystem
srcversion: B822641624778B987844F6F
depends: cfg80211

intree: Y
vermagic: 3.13.0-36-generic SMP mod_unload modversions
signer: Magrathea: Glacier signing key
sig_key: 38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo: sha512
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)


[iwlwifi]
filename: /lib/modules/3.13.0-36-generic/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
license: GPL
author: Copyright(c) 2003-2013 Intel Corporation
version: in-tree:
description: Intel(R) Wireless WiFi driver for Linux
firmware: iwlwifi-100-5.ucode
firmware: iwlwifi-1000-5.ucode
firmware: iwlwifi-135-6.ucode

firmware: iwlwifi-105-6.ucode
firmware: iwlwifi-2030-6.ucode
firmware: iwlwifi-2000-6.ucode
firmware: iwlwifi-5150-2.ucode
firmware: iwlwifi-5000-5.ucode
firmware: iwlwifi-6000g2b-6.ucode
firmware: iwlwifi-6000g2a-5.ucode
firmware: iwlwifi-6050-5.ucode
firmware: iwlwifi-6000-4.ucode
firmware: iwlwifi-7265-7.ucode

firmware: iwlwifi-3160-7.ucode
firmware: iwlwifi-7260-7.ucode
srcversion: C2D0F3DFCA289585C100E36
depends: cfg80211
intree: Y
vermagic: 3.13.0-36-generic SMP mod_unload modversions
signer: Magrathea: Glacier signing key
sig_key: 38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo: sha512
parm: swcrypto:using crypto in software (default 0 [hardware]) (int)

parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
parm: amsdu_size_8K:enable 8K amsdu size (default 0) (int)
parm: fw_restart:restart firmware in case of error (default true) (bool)
parm: antenna_coupling:specify antenna coupling in dB (defualt: 0 dB) (int)
parm: wd_disable:Disable stuck queue watchdog timer 0=system default, 1=disable, 2=enable (default: 0) (int)
parm: nvm_file:NVM file name (charp)
parm: bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
parm: led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
parm: power_save:enable WiFi power management (default: disable) (bool)
parm: power_level:default power save level (range from 1 - 5, default: 1) (int)


[cfg80211]
filename: /lib/modules/3.13.0-36-generic/kernel/net/wireless/cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg
srcversion: C2478077E22138832B71659
depends:
intree: Y
vermagic: 3.13.0-36-generic SMP mod_unload modversions

signer: Magrathea: Glacier signing key
sig_key: 38:F3:B6:C6:3A:85:AF:FD:FB:BE:0E:53:33:9D:F8:E0:C6:B6:C9:D5
sig_hashalgo: sha512
parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[mac80211]
beacon_loss_count: 7

ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
probe_wait_ms: 500

[iwlwifi]
11n_disable: 0
amsdu_size_8K: 0
antenna_coupling: 0
bt_coex_active: Y

fw_restart: Y
led_mode: 0
nvm_file: (null)
power_level: 0
power_save: N
swcrypto: 0
wd_disable: 1

[cfg80211]
cfg80211_disable_40mhz_24ghz: N

ieee80211_regdom: 00

##### /etc/modules ######################

lp
rtc

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]

blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m

blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac


[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off


[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################


exit 0

##### pm-utils ##########################

[/etc/pm/power.d/wireless] (755 root)
/sbin/iwconfig wlan0 power off

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x0887 (iwlwifi)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

[ 6007.775779] iwlwifi 0000:02:00.0: RF_KILL bit toggled to enable radio.
[ 6011.128079] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[ 6011.136901] iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0

[ 6011.203681] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6012.329356] wlan0: authenticate with
[ 6012.334173] wlan0: send auth to (try 1/3)
[ 6012.336306] wlan0: authenticated
[ 6012.336744] wlan0: associate with (try 1/3)
[ 6012.341336] wlan0: RX AssocResp from (capab=0x431 status=0 aid=3)
[ 6012.364839] wlan0: associated
[ 6012.364893] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6012.384107] wlan0: deauthenticating from by local choice (reason=2)
[ 6012.408121] wlan0: authenticate with

[ 6012.412092] wlan0: send auth to (try 1/3)
[ 6012.414214] wlan0: authenticated
[ 6012.416765] wlan0: associate with (try 1/3)
[ 6012.421359] wlan0: RX AssocResp from (capab=0x431 status=0 aid=3)
[ 6012.443977] wlan0: associated

########## wireless info END ############


Run the following commands, one line at a time in the terminal (CTRL+ALT+T):




echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi


What does this do? The 11n_disable option disables 802.11n features. Adding it to /etc/modprobe.d/iwlwifi.conf makes the change persist after reboots (because it will be part of the module config). The modprobe -rfv commands are removing the kernel modules iwldvm and iwlwifi, and finally the last line modprobe -v is adding iwlwifi back in.



To know what those kernel modules are/do, you can run modinfo | grep description, which will tell you the following:




iwlwifi is an Intel(R) Wireless WiFi driver for Linux (generic Intel drivers)



iwldvm is Intel(R) Wireless WiFi Link AGN driver for Linux (more specific drivers)






Other suggestions



Now, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, You may have better luck with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. After making these changes, you may need to reboot the router.


11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...