You are not logged in.
I try to change bash to zsh and . . .
it has problem, I use root only.
how can I get my arch back ==!
Thanks !
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
I'm not sure I understand your predicament but if you removed bash just put it back (pacman -Sy bash).
R.
Offline
Can you be a little more specific?
Did you have errors when changing to zsh? When you say you use root only -- does that mean you are not able to log in as your normal user...or do you just use root by preference (which is discouraged)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I don't have any user beside root.
I use chsh -s 'which zsh' but it seems which zsh doesn't work. I can't log in. it shows there's no file or directory .
I don't remove bash .
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
I don't have any user beside root.
So are you still in the installation process? You need to be more elaborate than that.
Last edited by Inxsible (2010-08-02 15:02:10)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
set the shell to /bin/zsh.
# log in as root
chsh -s /bin/zsh youruser
Also read this:
https://bbs.archlinux.org/viewtopic.php?id=50160
Last edited by Mr.Elendig (2010-08-02 15:13:17)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I'm not sure I understand your predicament but if you removed bash just put it back (pacman -Sy bash).
R.
I think it should read
pacman -S bash
Offline
I use chsh -s 'which zsh' but it seems which zsh doesn't work. I can't log in. it shows there's no file or directory .
Should have been
chsh -s `which zsh`
` and ' are two different things.
Easy fix anyways, edit /etc/passwd and change the root line to something like root:x:0:0:root:/root:/bin/bash to regain bash and try again.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
ralvez wrote:I'm not sure I understand your predicament but if you removed bash just put it back (pacman -Sy bash).
R.
I think it should read
pacman -S bash
Better:
pacman -Syu bash
But:
I don't remove bash .
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Easy fix anyways, edit /etc/passwd and change the root line to something like root:x:0:0:root:/root:/bin/bash to regain bash and try again.
how can I change this if I can't log in to my arch.
I mean after I enter root and my password, "there's no file or directory" and it pops me out the login again.
I can't do anything
I don't have any user beside root.
Last edited by nXqd (2010-08-02 15:43:32)
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
ralvez wrote:I'm not sure I understand your predicament but if you removed bash just put it back (pacman -Sy bash).
R.
I think it should read
pacman -S bash
Nope ... that's correct too. It just synchronizes packages before installing that's all.
I do that to make sure I get "fresh" repositories
R.
Offline
Maybe you have some LiveCD/USBstick, nxqd? With that you could change the file.
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
Maybe you have some LiveCD/USBstick, nxqd? With that you could change the file.
Ogion
I have arch install disk, does it work ?
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
yes
Last edited by Mr.Elendig (2010-08-02 15:51:11)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
yes
wow, how does it work out ?
I must mount my disk to it ? can you show me the detail how to do this ?
Thanks so much, lovely communication
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
This is what I do:
1. Put the CD in the bay and reboot
2. once you get to the point where the CD is pointing to install just go to the command line (but do not install, of course)
3. ant the prompt type: (I'm going to assume your HDD partition is hda1 but use whatever yours is.)
mount /dev/hda1 /mnt
mount /dev/hda1 /mnt/boot
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
Then I chroot into the system (that is to say the one in your HDD)
chroot /mnt /bin/bash
now you can do whatever you want to the system installed in your HDD.
R.
Edit: If your installation has a separate boot partition you must modify the above instructions. (say your boot partition is /dev/hda1 and y our main install in /dev/hda2 you would change the lines pointing to /dev/hda1 to /dev/hda2 except in mount /dev/hda1 /mnt/boot
Last edited by ralvez (2010-08-02 16:12:59)
Offline
This is what I do:
1. Put the CD in the bay and reboot
2. once you get to the point where the CD is pointing to install just go to the command line (but do not install, of course)
3. ant the prompt type: (I'm going to assume your HDD partition is hda1 but use whatever yours is.)
mount /dev/hda1 /mnt
mount /dev/hda1 /mnt/boot
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sysThen I chroot into the system (that is to say the one in your HDD)
chroot /mnt/bin/bash
You're missing a space. It should be
chroot /mnt /bin/bash
nXqd: we don't know your partition layout, so you will have to change the mount commands above to match your partitions.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
ralvez wrote:Then I chroot into the system (that is to say the one in your HDD)
chroot /mnt/bin/bashYou're missing a space. It should be
chroot /mnt /bin/bash
nXqd: we don't know your partition layout, so you will have to change the mount commands above to match your partitions.
Fixed
Offline
It would also be enough to simply use an editor on the installer and edit the file in place. Not really needed to chroot into it for this. (In other cases yes that is a good way).
Ogion
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
Thanks mates, I'm back in my arch
@About the name of this thread, I really want to get immediate help so 'suck name' maybe attract exp mems, doesn't it ?
Thanks again a lot
Last edited by nXqd (2010-08-02 16:26:05)
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
Thanks mates, I'm back in my arch
@About the name of this thread, I really want to get immediate help so 'suck name' maybe attract exp mems, doesn't it ?
Thanks again a lot
Thread names like: "SOS my arch !" makes people less likely to help you.
I ignored this thread for quite some time because of the title.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Thanks mates, I'm back in my arch
@About the name of this thread, I really want to get immediate help so 'suck name' maybe attract exp mems, doesn't it ?
Thanks again a lot
Immediate help, that's what IRC is for - and then again.
As Mr.Elendig said, this is the best way to put off people that know how to solve your problem.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Thanks mates, I'm back in my arch
@About the name of this thread, I really want to get immediate help so 'suck name' maybe attract exp mems, doesn't it ?
Thanks again a lot
Good. Now you can edit your title and add [SOLVED] so others can use it as a reference if they have a similar problem.
R.
Offline
I'm not sure I understand your predicament but if you removed bash just put it back (pacman -Sy bash).
R.
Just a note to you ralvez, don't do this; Never do this. If you really want to do that, do pacman -Syu foo. If you don't, you'll probably run into issues where the new foo is compiled against libraries and/or library versions that you haven't installed. pacman -Syu foo will take care of this for you.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
@rson451,
I have never (so far ) had that problem.
But I do not know how that would be possible. Form man pacman:
-y, --refresh
Download a fresh copy of the master package list from the server(s) defined in pacman.conf(5). This should typically be used each time you use
--sysupgrade or -u. Passing two --refresh or -y flags will force a refresh of all package lists even if they are thought to be up to date.
I do not understand why it would compile against libraries I do not have according to the man it would refresh all packages. Can you elaborate on that explanation?
Thanks.
R.
Offline