oio11: (dr)
Оригинал взят у [livejournal.com profile] uzverss в снятие блокировки apt-get


если при установке/удалении пакетов происходит ошибка с такими сообщениями

man-db: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Ресурс временно недоступен

то лечится так:
команда

sudo fuser /var/cache/debconf/config.dat

указывает № процесса, котоый заблокировал
убиваем этот процесс

kill -9 №такой_то

затем

sudo dpkg --configure -a
и
sudo apt-get -f install


http://ubuntu.5.x6.nabble.com/apt-troubles-td4893297.html

oio11: (Default)
sensors-detect tells me:
To load everything that is needed, add this to /etc/modules:
# Chip drivers coretemp w83627ehf 
If you have some drivers built into your kernel, the list above will contain too many modules. Skip the appropriate ones!
How can I find out which drivers are appropriate to skip, if any?
shareimprove this question
   
up vote 2 down vote accepted
  • The canonical method is to check your running kernel config, but this can be hard to parse because it will include both modules and other options and the names may not correspond:
    
    grep "=y" /boot/config-`uname -r`
  • Practically, it's much easier to simply do a:
    
    locate name-of-module | grep `uname -r`.*ko`
    
    (((?или locate name-of-module | grep `uname -r`.*ko )))
    (make sure the database has been recently updated, with sudo updatedb if necessary)
    If you see a .ko file entry like:
    
    /lib/modules/3.2.0-29-generic/kernel/drivers/hwmon/coretemp.ko
    then this module is NOT built-in and can properly be added to /etc/modules
    • But if you get no results in /lib/modules, then the module IS built-in and there may be no need to explicitly load it.
  • A variation to find all non-built-in modules in /lib/modules is:
    
    locate /lib/modules/`uname -r` | grep -Po "(?<=/)\w+(?=\.ko)"
shareimprove this answer


http://askubuntu.com/questions/181433/how-can-i-find-out-what-drivers-are-built-into-my-kernel
oio11: (Default)
I am using ubuntu 11.10 . last night i am searching some help on using my headfone mic . but i found nothing. then i install pavcontrol andRead more... )
oio11: (Default)

There are two MOTD's shown when I login to my server using SSH



up vote 2 down vote accepted
The MOTD can either be printed by sshd, or by PAM. It's possible that both are doing it.
Check your /etc/ssh/sshd_config for the following:
PrintMotd yes 
If that line isn't present it may be defaulting to yes (although Debian/Ubuntu change the default to no).
Check your PAM configuration in /etc/pam.d/ for the following:
session    optional     pam_motd.so 
Try disabling these one at a time to see what changes.
share|improve this answer
http://serverfault.com/questions/481146/there-are-two-motds-shown-when-i-login-to-my-server-using-ssh
oio11: (Default)
Boot loader configuration check needed

Postby leveller » 2010-07-21 13:55



Code: Select all
     Boot loader configuration check needed                                                  
       |                                                                                  
      │ The boot loader configuration for this system was not recognized. These settings in the  
      │ configuration may need to be updated:                                                    
      │                                                                                          
      │  * The root device ID passed as a kernel parameter;                                      
      │  * The boot device ID used to install and update the boot loader.                        
      │                                                                                          
      │                                                                                          
      │ You should generally identify these devices by UUID or label. However, on MIPS systems  
      │ the root device must be identified by name.
     
      Re: Boot loader configuration check needed

Postby craigevil » 2010-07-21 14:16
Run blkid as root. Then check that the output matches /etc/fstab and that grub is pointed to the proper partition in/boot/grub/grub.cfg

Then run update-initramfs followed by update-grub.

take a look at How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux
http://www.cyberciti.biz/faq/linux-find ... ate-fstab/

http://forums.debian.net/viewtopic.php?f=30&t=53833


oio11: (Default)
Boot loader configuration check needed

Postby leveller » 2010-07-21 13:55



Code: Select all
     Boot loader configuration check needed                                                  
       |                                                                                  
      │ The boot loader configuration for this system was not recognized. These settings in the  
      │ configuration may need to be updated:                                                    
      │                                                                                          
      │  * The root device ID passed as a kernel parameter;                                      
      │  * The boot device ID used to install and update the boot loader.                        
      │                                                                                          
      │                                                                                          
      │ You should generally identify these devices by UUID or label. However, on MIPS systems  
      │ the root device must be identified by name.
     
      Re: Boot loader configuration check needed

Postby craigevil » 2010-07-21 14:16
Run blkid as root. Then check that the output matches /etc/fstab and that grub is pointed to the proper partition in/boot/grub/grub.cfg

Then run update-initramfs followed by update-grub.

take a look at How To Use UUID To Mount Partitions / Volumes Under Ubuntu Linux
http://www.cyberciti.biz/faq/linux-find ... ate-fstab/

http://forums.debian.net/viewtopic.php?f=30&t=53833


oio11: (Default)
export DISPLAY="127.0.0.1:10.0"

sudo service ssh restart

http://www.x.org/wiki/FAQErrorMessages#AlreadyActive

Could not get lock /var/lib/dpkg/lock

sudo dpkg --set-selections < package.list && sudo apt-get dselect-upgrade

sudo dpkg --configure -a


???  sudo fuser -vki /var/lib/dpkg/lock; sudo dpkg --configure -a

sudo rm /var/lib/dpkg/lock

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock



http://unix.stackexchange.com/questions/59337/xming-debian-cant-open-display



startx -- :1

rm -rf /tmp/.X0-lock

~/.Xauthority required but missing

ln -s "$XAUTHORITY" ~/.Xauthority

ls -la ~/.Xauthority

???   x11vnc -display :0 -auth /home/USER/.Xauthority


export XAUTHORITY=/home/user/.Xauthority
su
xclock

http://www.linuxquestions.org/questions/linux-software-2/cannot-open-display-as-root-352200/


had same issue after syncing my home folder on Ubuntu 12.04. I resolved it using following commands:
rm ~/.Xaut*  

Then i logged out and re-logged in. Following warning arisen:

/usr/bin/xauth:  file /home/iranice/.Xauthority does not exist 

After that, Linux created .Xauthority file automatically. I logged out and re-logged in and everything was OK :)

Good luck

http://superuser.com/questions/315050/xauth-x11-ssh-forwarding-problem
 






http://askubuntu.com/questions/40320/unable-to-copy-the-users-xauthorization-file


http://askubuntu.com/questions/124038/xauthority-required-but-missing

/etc/network/interfaces -- configuration

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp


partconf-mkfstab

###################################################################################

Making X windows work after su or ksu

If you get the following error message

> xclock
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).

The problem is that X uses an authentication mechanism called xauth
which runs when you log in.  When you use su or ksu to switch your
identity, the xauth file of the new identity has different magic
cookies than your local X server knows about and you get the above
message.

To fix this, you need to take your original magic cookie that xauth
initially sets up and copy it into the xauth file of the new
identity. Under your original identity, do the following:

unity% echo $DISPLAY
localhost:10.0

This tells you the display number that was setup for you via SSH. In
the example the display number is 10.

unity% xauth list unix:10
linux00xen.unity.ncsu.edu/unix:10  MIT-MAGIC-COOKIE-1  79f6967b5f825931b17dfc0002f45748

Note the display number in the above command! This prints out the
cookie for your display. Put that string into your copy buffer. Next
switch to the new identity:

unity% sudo su -
Password:
# xauth add linux00xen.unity.ncsu.edu/unix:10  MIT-MAGIC-COOKIE-1  79f6967b5f825931b17dfc0002f45748
xauth:  creating new authority file /root/.Xauthority

You should now have the authentication for X setup. Try running the X app and it should work. 


##############################################################################

http://www.lns.cornell.edu/~dlr/acceleratorphysics/computing/unix.txt


oio11: (Default)

Why “partition X does not end on cylinder boundary” warnings don’t matter

While reviewing the partion layout on one of my hard drives, I noticed a number of “Partition X does not end on cylinder boundary” messages in the fdisk output:

$ fdisk /dev/sda

The number of cylinders for this disk is set to 9726.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xac42ac42

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26         287     2097152   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3             287        9726    75822111+  8e  Linux LVM

This was a bit disconcerting at first, but after a few minutes of thinking it dawned on me that modern systems use LBA (Logical Block Addressing) instead of CHS (Cylinder/Head/Sector) to address disk drives. If we view the partition table using sectors instead of cylinders:

$ sfdisk -uS -l /dev/sda

Disk /dev/sda: 9726 cylinders, 255 heads, 63 sectors/track
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1   *        63    409662     409600  83  Linux
/dev/sda2        409663   4603966    4194304  83  Linux
/dev/sda3       4603967 156248189  151644223  8e  Linux LVM
/dev/sda4             0         -          0   0  Empty

We can see that we end at a specific sector number, and start the next partition at that number plus one. I must say that I have grown quite fond of sfdisk and parted, and they sure make digging through DOS and GPT labels super easy.

http://prefetch.net/blog/index.php/2009/09/12/why-partition-x-does-now-end-on-cylinder-boundary-warnings-dont-matter/

oio11: (Default)

Invalid MIT-MAGIC-COOKIE-1 key and cannot open display: :0.0

If you areRead more... )
oio11: (Default)

Remove CUPS, Avahi-daemon, and Apparmor from Ubuntu

Posted: February 5, 2012 in *nixCUPS is the standards-based, open source printing system Read more... )
oio11: (Default)

Autohide Top Bar для Gnome Shell 3.4


Read more... )
oio11: (Default)

Autohide Top Bar для Gnome Shell 3.4


Read more... )
oio11: (Default)

Autohide Top Bar для Gnome Shell 3.4


Read more... )
oio11: (Default)

Getting back the missed minimize/maximize buttons in GNOME 3.

Struggling to get used to it, I was very much missing the minimize/maximize buttons on my applications in GNOME 3.

gnome3_minmax

I have finally found a solution to get these buttons back and if you are looking for a solution, this should work for you too:

http://blog.ergatides.com/2011/06/17/getting-back-the-missed-minimizemaximize-buttons-in-gnome-3/

  • $ sudo yum -y install gnome-tweak-tool
  • $ gnome-tweak-tool
  • Click on Shell
  • Change Arrangement of buttons on the title bar from Close only to All
  • Log out or Restart
  • Log in
и....Оригинал взят у [livejournal.com profile] sr_maks в Исчезли значки свернуть/закрыть/развернуть
После обновления исчезли значки управления окном(свернуть, развернуть).
 Система->
   Параметры->
     Менеджер настройки CompizConfig ->
       Window Management ->
          Window Rules

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 26th, 2025 02:07 am
Powered by Dreamwidth Studios