I have accidentally changed the permission of "/usr/bin" directory and its files by the command on my Debian/testing system:
Code: Select all$chmod 775 /usr/bin -R
First, there was a problem with sudo but I fixed it. Now I am suspicious that some programs may not run because of changing their setuid or setgid. I have posted this question here and found out that there is no easy way to restore their setuid or setgid for Debian systems. For RPM based distributions, it is fairly easy. I would like to add a few questions:
Is it possible to write a script which stores all directories and files default permissions like RPM based distributions? And it restores its previous state. I suspect that some programs may not run from my user account (I only use the computer myself.) If I run the programs from my root account, will the programs run without problem?
i did an install of squeeze without selecting anything during tasksel. after install i changed my sources to testing, updated, and did a dist-upgrade. i then installed xfce4 and xfce4 goodies. i noticed some of the xfce4 packages have the current state 'pa'. for example:
[Code]...
this makes me worry some things didn't install all the way, because if i did aptitude install xfce4-power-manager it would install it and leave make the current state 'i'.is there anyway to install all the packages labeled 'pi'?
I had been doing some removal of packages, and things went well, or so I thought. Now whenever I try and install any package using aptitude, some old state is lingering around and wants me to install packages that I do not want, and remove some packages that I am not sure about removing (did I actually select those to be removed??) I removed libvirt etc, and now it wants to come back? Also, like I mentioned, why remove those other four packages?
The following NEW packages will be installed: aqemu gtkrsync libvirt-doc libvirt0 python-libvirt qemu qemu-kvm qemu-system qemu-user qemu-utils virt-top virt-viewer virtinst The following packages will be removed: dnsmasq-base{u} netcat-openbsd{u} python-gtk-vnc{u} python-vte{u} 0 packages upgraded, 13 newly installed, 4 to remove and 176 not upgraded. Need to get 2,210kB/24.3MB of archives. After unpacking 72.7MB will be used. Do you want to continue? [Y/n/?] ^C
Running squeeze, and enjoying it so far, apart from a broken out of the box synergy (compiled my own synergy-plus to fix that issue) and a buggy samba client.
I have a strange problem with the ACPI in my laptop, the problem start some days ago, I don't remember exactly the day.
The first symptom is with de Gnome Power Manager, only show me when I disconnect de AC power, but when connect it again the Power Manager icon disappear and the energy battery stay in the same value.
After search for a while, all the post I read talking about the /proc/acpi/battery directory, but this directory not exist on my laptop.
I have a laptop Lenovo G460. My OS is Squeeze. My Kernel is 2.6.38-bpo.2-amd64, because the 2.6.32 version of the kernel don't recognize well my audio card.
I can't attach the dmesg and the lsmod output because I receive a message "Sorry, the board attachment quota has been reached.", both file are compressed.
Using Squeeze, I wanted to get KMS + DRI2 and suspend/hibernate working with my radeon card using the Open source driver (my card: ATI Radeon Xpress 200M IGP (5955) PCIE (RC410) is no longer supported by the ATI/AMD proprietary driver). I know my card has problems with suspend/hibernate in User modesetting and from what I've read [URL] it has been solved for some only using KMS.
I followed this instructions by the Debian maintainer:[URL] Of course in reality the available version in experimental is now 6.12.191, and mesa 7.7 and libdrm-radeon1 are already in testing. Therefore I only had to get xserver-xorg-video-radeon from experimental and switch KMS on. It worked ok , except that when I tried to hibernate, it didn't even go into hibernate mode!...the screen went blank and the wireless led shut off, but the fan was running and the keyboard lights were on...
Aside from that I also got the following disquieting messages:
[drm:rs400_gart_adjust_size] *ERROR* Forcing to 32M GART size (because of ASIC bug ?) radeon 0000:01:05.0: Wait MC idle timeout before updating MC Failed to wait MC idle while programming pipes. Bad things might happen.
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
I have setup a VPS @ Strato with Linux Wheezy.Since I'am in the Netherlands I got a Dutch language package installed.I like to setup into englisch all the way.Via dpkg-reconfigure locales I have installed en_GB.UTF-8 UTF8 language packages and deïnstaled nl_NL.utf8
Generating locales (this might take a while)... en_GB.UTF-8... done Generation complete.
But a lot of the commands are still in Dutch like: h2458377:~# uitgelogd.And quite often I got: -su: warning: setlocale: LC_ALL: cannot change locale (nl_NL.utf8)
How do I get ripped off this error?Just working with/on the command line
I have debian latest stable and have been using a geforce gfx card which has now failed.I have removed the gfx card and activated the on board gfx in bios and I can boot to the grub screen.The onboard gfx is on my i5 4600.After I select debian from grub I end up with a blank black screen and a small cursor in top left hand corner but I cannot type anything with this cursor. From this screen I can only ctrl+alt+del for reboot or physically turn off the pc.I think this is a driver issue but wouldnt debian just use a default gfx driver automatically in this situation so I would at least get to a console or desktop? If this is the case what is the process to enable the required driver? via rescue disk?Mobo is gigabyte GA z87 hd3 and im wondering if this might be something to do with uefi or similar?
I've an asuspro (more precisely the p2520la version) notebook with the fn+f5, fn+f6 buttons that should change brightness of the screen. But they don't work. For volume it's ok (fn+f11/f12), and if I go in the system settings I c an change manually the brightness (I use kde so there is a bar with which change it). But when I'm outside and the screen brightness is low I found difficult to find the menu settings and the hardware buttons would be better.I've tried adding to the kernel the "acpi_osi=" command but doesn't work.
I looked into my shell 'profile' on my running lenny and copied the PS1 definition over to my [virtual] new squeeze machine, but astoundingly, the prompt does not change!
The prompt always remains to be like this:${debian_chroot:+($debian_chroot)}u@h:w$
This does definitively not stem from 'profile' and I cannot find, where it is defined and how I can override this. If I do it interactively, in a terminal [terminal running in Gnome], it works like expected. In that script, even if I use 'unset PS1',followed by PS1= ... / export PS1, it does not change,Someone with the knowledge and/or a good idea would be great!
I'm trying to change the background for GDM3, but nothing happens. I have edit /etc/gdm3/greeter.gconf-defaults and /usr/share/gdm/greeter-config/20_debian and then dpkg-reconfigure gdm3 and invoke-rc.d gdm3 reload, but it still has a horrible, green background colour.
I am running a Debian server, but I have a problem with the locales, as I need to use the Danish letters I tried using dpkg-reconfigure locales, but it do not change the LC_* and LANG*, but it is set to POSIX How can I change the locales to da_DK_UTF-8?
I have three monitors, two Dells and an older LG all native at 1920x1080@60Hz and only recently installed Debian on this setup.
The LG is detected as running at 59.93Hz instead of 60Hz and this discrepancy appears to drive up the temperatures in my GPU constantly, even on idle, and introduces severe stuttering in any kind of graphical application.
I had the exact same issue with Windows 7 as well, but was able to fix it by changing the display settings of said monitor to 60Hz refresh, thereby returning the idle temps to normal and removing the stuttering.
My problem now is that I can't seem to change the refresh rate of this screen at all under debian.
xrandr -q returns that the monitor is running at 59.93Hz, but also shows 60Hz as available. xrandr --output DVI-I-1 --rate 60 appears to have absolutely no effect, it doesn't error but it also doesn't change the refresh rate.
Trying to add a new mode with 60hz and modeline obtained from cvt results in the following:
Code: Select allxrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode DVI-I-1 "1920x1080_60.00"X Error of failed request:Â BadMatch (invalid parameter attributes) Major opcode of failed request:Â 140 (RANDR) Minor opcode of failed request:Â 18 (RRAddOutputMode) Serial number of failed request:Â 41 Current serial number in output stream:Â 42
I've also tried to set the refresh rate through the proprietary nvidia driver and manually through xorg.conf, both to no effect;
Here's my current xorg.conf:
Code: Select allSection "ServerLayout"   Identifier   "Layout0"   Screen   0 "Screen0" 0 0   InputDevice  "Keyboard0" "CoreKeyboard"   InputDevice  "Mouse0" "CorePointer"   Option     "Xinerama" "0" EndSection
[Code] ....
The driver settings will show 60Hz but the listing for the monitor in the driver and xrandr will still show 59.93Hz. Saving the settings of nvidia-settings to .nvidia-settings-rc was equally fruitless.
The settings on the monitor itself also show it running at 60Hz, without an option to go down to 59.93Hz so I got no clue where that is even coming from.
What else to try, besides buying a new monitor, which I'm not quite prepared to do yet.
When I installed Debuntu i picked US as my country, and now when i try to change region/language/keyboard-layout to norwegian, Debuntu only suggests english. How can i install the Norwegian language pack to debuntu?
I got some trouble with suspending/hibernation using gnome or mate. None of them can suspend the T450 correcly neither to disk nor to ram. If I run pm-utils from a terminal pm-sleep and pm-hibernate work fine both. So I guess all I need is to change the commands which are run by clicking on the suspend or hibernate button, but how to change what is behind the GUI.
I have SSD drives without SCT support, because of this I want to tune /sys/block/device-name/device/timeout in order to force mdadm put these drives offline. So, I can see my drive like this:
Where can I tune /sys/block/device-name/device/timeout from 30 to 7 sec only for these drive? I don't want to use rc.local.
Can I create right udev rules for it in /etc/udev/rules.d?
I want to avoid any conflict with /lib/udev/rules.d.
Code: Select all# udevadm monitor --environment --udev monitor will print the received events for: UDEV - the event which udev sends out after rule processing
UDEV [9302.549485] add   /devices/pci0000:00/0000:00:01.2/0000:03:00.0/host0/target0:0:0 (scsi) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:03:00.0/host0/target0:0:0 DEVTYPE=scsi_target SEQNUM=5210 SUBSYSTEM=scsi
i have created a wordpress user with a symbolic link from his home (/home/wordpress) to /usr/share/wordpress but when wordpress ftps to wordpress home dir it does not follow the sym-link. is there a way to set default ftp dir for the wordpress user to /usr/share/wordpress rather than /home/wordpress?
How do I change amount of display Hertz in VC? I have a conjecture that it's not the same as in GUI (on my computer). Ubuntu 10.04, Gnome. if not Debian, but at least it's close.
how to change the default language of gnome.when i boot into x-window ,i can select the language ,But ,if boot into console ,via "startx" to run the w-window ,the language is english,i can't select .my native language is Chinese.i set the right locale .I also searched for it .Someone told to add "export LANG=zh_CN.UTF-8"to $HOME/.xinitrc.there's no this file in my home dicretion.I create it .after that,when i run "startx",it's failed to start x-window.the ~/.xsession-error file shows
Initializing gnome-mount extension seahorse nautilus module initialized Unrecognized number formatter: cjk-chinese-simp Unrecognized number formatter: cjk-chinese-simp
[code]...
how can i change the default language ,i have to .because if gnome is in English ,i can't run the Chines input method.
I'm trying to allow non-root account to use avrdude to program mucrocontrollers. There are many articles online about how to do that, but it seems not to work for me. Every time i try to execute avrdude it says "permission denied". Here's "$ udevadm info --name=/dev/bus/usb/002/011 --attribute-walk" says looking at device '/devices/pci0000:00/0000:00:1d.1/usb2/2-1':
However, after restarting udev, replugging the device, even rebooting the computer I still get "permission denied". The Vendor and Product match, so what's the problem?
I updated to Wheezy from Squeeze and whilst I can make changes to sources.list manually, I can't do some updates in Software Sources.For instance, the 3 check boxes under "Download from internet" are all un-ticked and I can't change them if I wanted to - even though the sources.list is set up with "main contrib non-free"I cannot amend the download server either - it works out what the best server is but wont update if I tell it to.
On my Laptop, I installed Debian under the file "/" and the partition on which I have all my files under "/var". While this isn't really a big issue, when I originally installed Debian, I had the intention of having all of my files on a partition that I would auto-mount later so that when I upgrade my system by reinstalling it, I would only have to change the system partition and let everything else stay the same.. I can live without changing my /var if I can only do so by a re-install...
I installed Debian Kit on my Asus Nexus 7 tablet, and after following the installation tutorial I got it running except for I'm stuck on the step to create a new user. (btw link: [URL] .... )
Here's how it went (I can't copy&paste from my tablet so I have to type out everything...):
Code: Select allroot@android-6c40984c21c156ae:/# adduser paul374 Adding user `paul374' ... Adding new group `paul374' (5000) ... Adding new user `paul374' (5000) with group `paul374' ... Creating home directory `/home/paul374' ...
[Code] ....
So since I read somewhere that selinux had some permission problem, so I did a few chcons:
Code: Select allroot@android-6c40984c21c156ae:/# ls -Z | grep passwd       u:r:init:s0 passwd u:object_r:unlabeled:s0 passwd- root@android-6c40984c21c156ae:/# ls -Z | grep shadow       u:r:init:s0 gshadow u:object_r:unlabeled:s0 gshadow-       u:r:init:s0 shadow u:object_r:unlabeled:s0 shadow-
...but still same thing as what happened in the beginning...
Anyway my goal is to create and be able to log in to another user so that I'm not stuck running root all the time. (Which, as we all know, is a bad idea.)
If there's a way to manually create the user by editing a few files, and root still won't be able to change passwords, I'm fine with that, as long as I have another user. Whatever it takes to just get a non-root user log-in-able...
I forgot to mention that since this is the Asus Nexus 7, there is no removable media, so chrooting from another Linux machine isn't an option, and neither is removing an SD card to use a LiveCD on it.
I am getting more and more comfortable working with the shell, thus I would like to change its prompt color to my liking, as it will be easier for me to distinguish commands vs. outputs.
I've read a couple of instructions of how to change the .bashrc file and am familiar with what the codes in PS1 mean. Except, this file can be intimidating to newbie eyes.
Where exactly on the file is it that I need to make the change?
Here is what I am trying to do. I would like my prompt to like exactly like the prompt I use in Backtrack - which consist in two different colors, one for the host and another for the pwd. Here is what the Backtrack .bashrc file looks like:
# /etc/profile: This file contains system-wide defaults used by # all Bourne (and related) shells. # Set the values for some environment variables: export MINICOM="-c on" export MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/local/share/man:/usr/bin/man:/usr/share/man export HOSTNAME="`cat /etc/HOSTNAME`"
[Code]....
I also read that in order to have the same results when I log in as root, I will have to copy the modified .bashrc file into /root